You can use length(genres) to do anything you wantretriever.get_relevant_documents("What's a movie that have more than 1 genres?")# Fine-grained datetime? You got it already.retriever.get_relevant_documents("What's a movie that release after feb 1995?")# Don't know what your exact filter should be? Use string pattern match!retriever.get_relevant_documents("What's a movie whose name is like Andrei?")# Contain works for lists: so you can match a list with contain comparator!retriever.get_relevant_documents(    "What's a movie who has genres science fiction and adventure?")Filter k‚ÄãWe can also use the self query retriever to specify k: the number of documents to fetch.We can do this by passing enable_limit=True to the constructor.retriever = SelfQueryRetriever.from_llm(    llm,    vectorstore,    document_content_description,    metadata_field_info,    enable_limit=True,    verbose=True,)# This example only specifies a relevant queryretriever.get_relevant_documents("what are two movies about dinosaurs")PreviousMilvusNextOpenSearchCreating a MyScale vector storeCreate some sample dataCreating our self-querying retrieverTesting it out with self-query retriever's existing functionalitiesFilter kCommunityDiscordTwitterGitHubPythonJS/TSMoreHomepageBlogCopyright ¬© 2023 LangChain, Inc.
MyScale is an integrated vector database. You can access your database in SQL and also from here, LangChain.
MyScale is an integrated vector database. You can access your database in SQL and also from here, LangChain. ->: You can use length(genres) to do anything you wantretriever.get_relevant_documents("What's a movie that have more than 1 genres?")# Fine-grained datetime? You got it already.retriever.get_relevant_documents("What's a movie that release after feb 1995?")# Don't know what your exact filter should be? Use string pattern match!retriever.get_relevant_documents("What's a movie whose name is like Andrei?")# Contain works for lists: so you can match a list with contain comparator!retriever.get_relevant_documents(    "What's a movie who has genres science fiction and adventure?")Filter k‚ÄãWe can also use the self query retriever to specify k: the number of documents to fetch.We can do this by passing enable_limit=True to the constructor.retriever = SelfQueryRetriever.from_llm(    llm,    vectorstore,    document_content_description,    metadata_field_info,    enable_limit=True,    verbose=True,)# This example only specifies a relevant queryretriever.get_relevant_documents("what are two movies about dinosaurs")PreviousMilvusNextOpenSearchCreating a MyScale vector storeCreate some sample dataCreating our self-querying retrieverTesting it out with self-query retriever's existing functionalitiesFilter kCommunityDiscordTwitterGitHubPythonJS/TSMoreHomepageBlogCopyright ¬© 2023 LangChain, Inc.