Skip to content
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

[FEATURE] Pls. add Similarity Score Threshold retriever to Flowise #991

Closed
vanetreg opened this issue Sep 30, 2023 · 5 comments
Closed

[FEATURE] Pls. add Similarity Score Threshold retriever to Flowise #991

vanetreg opened this issue Sep 30, 2023 · 5 comments

Comments

@vanetreg
Copy link

vanetreg commented Sep 30, 2023

Describe the feature you'd like
Pls add Similarity Score Threshold retriever to Flowise.
Docs:
https://js.langchain.com/docs/modules/data_connection/retrievers/how_to/similarity-score-threshold-retriever

Additional context
It adds some nice advanced retrieval methods to Flowise.

According to Langchain's chatbot, we should simply be able to set some Vectorstore parameters:

# Convert the vector store into a retriever with Similarity Score Threshold retrieval method
retriever = db.as_retriever(search_type="similarity_score_threshold", search_kwargs={"score_threshold": 0.5})

but that input is not available yet in Vector Store Retriever node.

@HenryHengZJ
Copy link
Contributor

Will definitely add that! In the meantime you can try using the Vector to Document node, that allows you to specify the similarity threshold

@vanetreg
Copy link
Author

In the meantime you can try using the Vector to Document node, that allows you to specify the similarity threshold
I tried to search for "Vector to Document" in
https://docs.flowiseai.com/
but it hasn't found any such info,
so where is it available in the docs / Flowise?

@HenryHengZJ
Copy link
Contributor

image

try update your flowise version

@HenryHengZJ
Copy link
Contributor

#1012

@vanetreg vanetreg closed this as completed Oct 7, 2023
@vanetreg
Copy link
Author

vanetreg commented Oct 7, 2023

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants