Document ID is not supported in create/index operation request

0

I am new to AOSS. I have a serverless vector opensearch collection. I am trying to use langchain to add embeddings to the db

My code -

def opensearchvector(docs, embedding_function, opensearch_url, awsauth, index_name):
        return OpenSearchVectorSearch.from_documents(
            docs,
            embedding_function,
            opensearch_url=opensearch_url,
            http_auth=awsauth,
            use_ssl=True,
            verify_certs=True,
            http_compress = True,
            connection_class=RequestsHttpConnection,
            index_name = index_name,
            engine="faiss"
        )

This worked for me a few days ago, but recently it has started giving me the illegal_document_exception - ('1 document(s) failed to index.', [{'index': {'_index': 'json-test-index', '_id': 'cec36b7c-7140-45cb-aaa0-ddede89ed5af', 'status': 400, 'error': {'type': 'illegal_argument_exception', 'reason': 'Document ID is not supported in create/index operation request'}. I am not adding any indexes to my documents but still i get this error

1개 답변
0
수락된 답변

Updating Lang chain version fixed it for me

답변함 5달 전
profile pictureAWS
전문가
검토됨 5달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠