Replies: 1 comment
-
To apply the retriever = vector_store.as_retriever(
search_kwargs={
"k": 8,
"filter": {
"$and": [
{"profile_names": {"$in": profile_names}},
{"date": date},
{"full_name": {"$like": f"{profile_names[0]}%"}}
]
}
}
) In this example, the To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
Beta Was this translation helpful? Give feedback.
-
where 'profile_names': ['Arthur', 'Charlie']
i want to handle cases where the user inputs just the first name (e.g., "Arthur"), but i want it to match full names (like "Arthur Hayes") in the vector database through filtering
Beta Was this translation helpful? Give feedback.
All reactions