You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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].
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?
The text was updated successfully, but these errors were encountered: