semantic scores of all documents for a query #3998
Unanswered
sinchanabhat
asked this question in
Questions
Replies: 1 comment
-
Hi, @sinchanabhat I converted this to a discussion since this looks more like a question about how to use existing Haystack functionality. It would be easiest for me to help you if you could provide me with runnable code to reproduce your setup. So if you could provide that to me I would really appreciate it. But to take a crack at answering your question:
len_doc_store = doc_store.get_document_count()
result = pipeline.run(query, params={"Retriever": {"top_k" : len_doc_store}}) Please let me know if this helps! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am trying to get the semantic scores of all the documents for a single query. Is there any variable that I need to pass in while using
pipeline = DocumentSearchPipeline(retriever)
result = pipeline.run(query, params={"Retriever": {"top_k" : 10}})
If I use or do not use top_k, I will get ordered scores, but I do not want ordered scores, I want scores for all the documents. Is this possible?
Looking forward!
Thanks
Sinchana
Beta Was this translation helpful? Give feedback.
All reactions