-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Substantial Agent Search Updates #3994
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did a huddle to do review together, LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM as long as you tested and it works!
|
||
# Sort by score in descending order, handling None scores | ||
sorted_sections = sorted( | ||
unique_sections.values(), key=lambda x: x.center_chunk.score or 0, reverse=True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If multiple docs have the same score (say 0) this does not give a unique order
relevant_doc_ids = [doc.center_chunk.document_id for doc in relevant_docs] | ||
|
||
# Start with relevant docs or fallback to original question docs | ||
streaming_documents = relevant_docs.copy() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no more fallback to original question docs? If so, remove "fallback to" comment
deb0305
to
89be53c
Compare
Description
Updates:
Here is the linear ticket: https://linear.app/danswer/issue/DAN-1452/agent-search-update
How Has This Been Tested?
Local tests with plenty of questions
Backporting (check the box to trigger backport action)
Note: You have to check that the action passes, otherwise resolve the conflicts manually and tag the patches.