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
Hi, i'd like to ask a few questions about how to use milvus-haystack.
I'm developing a bot using LLM with milvus-haystack. And I've gone through official website. but couldn't figure it out these two problems. Could you please help me?
First question :
If i insert data like this format(refer to first image), is it possible to filter "meta" data? I managed to select data using "content" like this format.
{
"store_name": "test",
"content": "",
"meta": {},
"filters": {
"content": "Test"
}
}
But, I couldn't figure out how to filter "meta" (i mean dict type, string type work well). I am only able to filter it in only Python now(back-end). If it is possible to filter dict type in front-end, could you please share it?
*"report_key_example2.report_code": "repokey" this one didn't work.
Second question :
I created a collection using milvus-haystack function which is "_create_collection" with "auto_id=True". I do know "wrtie_document" method create collection by itself. But the reason i didn't use the method is i want to insert dupilcated "content". Since "write_document" generates id with "content" and doesn't allow it.
Aftter i created a collection, i tried to insert data using "write_documents" but it raise an error which is like this "pymilvus.exceptions.ParamError: <ParamError: (code=1, message=auto id enabled, id shouldn't in entities[0])> "
Is there other ways to insert data when the target collection is set as "auto_id=True"?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, i'd like to ask a few questions about how to use milvus-haystack.
I'm developing a bot using LLM with milvus-haystack. And I've gone through official website. but couldn't figure it out these two problems. Could you please help me?
First question :
If i insert data like this format(refer to first image), is it possible to filter "meta" data? I managed to select data using "content" like this format.
{
"store_name": "test",
"content": "",
"meta": {},
"filters": {
"content": "Test"
}
}
But, I couldn't figure out how to filter "meta" (i mean dict type, string type work well). I am only able to filter it in only Python now(back-end). If it is possible to filter dict type in front-end, could you please share it?
*"report_key_example2.report_code": "repokey" this one didn't work.
Second question :
I created a collection using milvus-haystack function which is "_create_collection" with "auto_id=True". I do know "wrtie_document" method create collection by itself. But the reason i didn't use the method is i want to insert dupilcated "content". Since "write_document" generates id with "content" and doesn't allow it.
Aftter i created a collection, i tried to insert data using "write_documents" but it raise an error which is like this "pymilvus.exceptions.ParamError: <ParamError: (code=1, message=auto id enabled, id shouldn't in entities[0])> "
Is there other ways to insert data when the target collection is set as "auto_id=True"?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions