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

PGVector behavior is strange #4252

Open
Eugene-M opened this issue Oct 23, 2024 Discussed in #4247 · 1 comment
Open

PGVector behavior is strange #4252

Eugene-M opened this issue Oct 23, 2024 Discussed in #4247 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Eugene-M
Copy link

Discussed in #4247

Originally posted by Eugene-M October 23, 2024
Hi!

I've noticed some peculiar behavior with the PGVector component. Ideally, PGVector should vectorize (or create an embedding of) the user's chat input, then find similar records in the database through a vector search. However, in practice, it seems to completely disregard the user's input, returning all records from the database in the search results regardless. Could you help me figure out what's going wrong?

image

Copy link

dosubot bot commented Oct 23, 2024

I found a similar unsolved discussion regarding the PGVector component's behavior [1]. The issue seems to be related to the search_query not being properly utilized. If self.search_query is empty or invalid, the component defaults to returning all records. To resolve this, ensure that a valid search_query is provided before executing the search. The search_documents method should be checked to confirm that search_query is correctly set and passed for the similarity search [2].

To continue talking to Dosu, mention @dosu.

@dosubot dosubot bot added the bug Something isn't working label Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants