Skip to content

Open Search: mapper_parsing_exception #3677

@miriyald

Description

@miriyald

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions