SelfQueryRetriever case sensitive filtering #14391
-
Hi there, Is the metadata filtering with SelfQueryRetriever case sensitive? How to make it case insensitive then? Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
🤖 Hi @Yen444, Nice to see you again here. Hope everything is going smooth with your project. The However, regarding your question about case sensitivity, the LangChain codebase does not appear to include any functionality or method in the If you need case-insensitive filtering, you might need to implement it yourself in the translator associated with your vector store. For example, you could convert all keys and values to lowercase before storing them in the vector store, and then convert your query to lowercase as well before performing the search. Please note that this is based on the current state of the LangChain codebase and the information available in the repository. There may be additional functionality or methods that I was not able to find. If you have further questions or need more specific help, please provide more details about your use case. SourcesThis response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. |
Beta Was this translation helpful? Give feedback.
-
Not exactly what you need, but you can specify the attributes as lowercase or uppercase. Just add it into the description. Like this you can have all the metadata keywords lowercase and the same for the attributes. |
Beta Was this translation helpful? Give feedback.
Not exactly what you need, but you can specify the attributes as lowercase or uppercase. Just add it into the description. Like this you can have all the metadata keywords lowercase and the same for the attributes.