Passing query from SelfQueryRetriever to ContextualCompressionRetriever #28423
Unanswered
dominikbenk
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Checked other resources
Commit to Help
Example Code
Description
Hello everyone,
lets assume we have the simple implementation of
SelfQueryRetriever
andContextualCompressionRetriever
from the code example. This is the query extracted fromSelfQueryRetriever
and used in similarity search:This, on the other hand, is the query used in
ContextualCompressionRetriever
to check for the relevancy (same as original prompt):Is it possible to make the query in
ContextualCompressionRetriever
the same as inSelfQueryRetriever
? i.e.:Thank you in advance, any help appreciated!
System Info
platform mac
python 3.11
Beta Was this translation helpful? Give feedback.
All reactions