-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Open
Description
I was running the Example given in documentation for Open search as Vector Provider
https://docs.mem0.ai/components/vectordbs/dbs/opensearch
m = Memory.from_config(config)
messages = [
{"role": "user", "content": "I'm planning to watch a movie tonight. Any recommendations?"},
{"role": "assistant", "content": "How about thriller movies? They can be quite engaging."},
{"role": "user", "content": "I'm not a big fan of thriller movies but I love sci-fi movies."},
{"role": "assistant", "content": "Got it! I'll avoid thriller recommendations and suggest sci-fi movies in the future."}
]
m.add(messages, user_id="alice", metadata={"category": "movies"})
Getting following error
Error inserting vector abdffcea-3097-41a5-aaa7-4d8c5716c1a5: RequestError(400, 'mapper_parsing_exception', "failed to parse field [vector_field] of type [knn_vector] in document with id 'pih5KJoBshOKdzGc0ipK'. Preview of field's value: 'null'")
Error processing memory action: {'id': '0', 'text': 'Loves sci-fi movies', 'event': 'ADD', 'old_memory': None}, Error: RequestError(400, 'mapper_parsing_exception', "failed to parse field [vector_field] of type [knn_vector] in document with id 'pih5KJoBshOKdzGc0ipK'. Preview of field's value: 'null'")
&
Error inserting vector 6f602db5-ea9f-4f1d-903e-d8b7fff9661a: RequestError(400, 'mapper_parsing_exception', "failed to parse field [vector_field] of type [knn_vector] in document with id 'Rix5KJoBoEQ83oZD0pvw'. Preview of field's value: 'null'")
Error processing memory action: {'id': '1', 'text': 'Does not like thriller movies', 'event': 'ADD', 'old_memory': None}, Error: RequestError(400, 'mapper_parsing_exception', "failed to parse field [vector_field] of type [knn_vector] in document with id 'Rix5KJoBoEQ83oZD0pvw'. Preview of field's value: 'null'")
It created the mem0 and mem0Migration Indexes though
Metadata
Metadata
Assignees
Labels
No labels