You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
Implement a feature to add citation links at the bottom of messages in the user UI chat. This will provide users with sources for the information presented, similar to other AI chat applications.
Approach:
List of Sources: Initially, implement a simple list of sources at the end of the content. This approach is preferred for the first pass as it is programmatic and straightforward.
Unique Identifiers: Consider using unique identifiers for citations to avoid conflicts with standard LLM responses.
Discussion Points:
There was a suggestion to filter out unused sources, meaning only listing sources that the LLM actually used.
The team agreed to start by listing all sources passed to the LLM and evaluate its effectiveness before considering more complex solutions.
Note:
There might already be an existing issue titled "add citations." Please check for any existing issues before proceeding with this implementation.
The text was updated successfully, but these errors were encountered:
It was noted that when files are uploaded to the knowledge-files for an agent, the subsequent queries to knowledge do not have the URL set in the response, resulting in no references to render citations.
Proposed Solution:
A pull request (PR #428) was proposed to add file source and location metadata to knowledge results. This change introduces a url field and a location field to provide more context.
Discussion on URL Handling:
There was a discussion about the need for URLs to be properly formatted before the LLM sees them, as the LLM forms citations based on these URLs.
A suggestion was made to have a route in the API that exposes knowledge files, similar to how image URLs are handled.
API Considerations:
The API exists for knowledge files but needs to support singular file access. It was confirmed that the knowledge tool should return URLs that can be resolved to the API, allowing for downloading or opening source files.
Next Steps:
TK was tasked with adding the necessary API support, following the pattern for accessing workspace files on a thread.
This context is related to the feature request for adding citations in the user UI chat.
Feature Request: Add Citations in User UI Chat
Description:
Implement a feature to add citation links at the bottom of messages in the user UI chat. This will provide users with sources for the information presented, similar to other AI chat applications.
Approach:
Discussion Points:
References:
Note:
There might already be an existing issue titled "add citations." Please check for any existing issues before proceeding with this implementation.
The text was updated successfully, but these errors were encountered: