HamaWhiteGG / langchain-java

Java version of LangChain, while empowering LLM for Big Data.
Apache License 2.0
545 stars 106 forks source link

pinecone.fromDocuments(docs, embeddings); 如何获取向量的id #78

Closed TheBlindM closed 1 year ago

TheBlindM commented 1 year ago

在python版中可以传入ids 来设置

    ids_batch = [str(uuid.uuid4()) for n in range(0, len(split_docs))]
    Pinecone.from_documents(split_docs, embeddings, index_name="myindex", namespace=namespace, ids=ids_batch)
HamaWhiteGG commented 1 year ago

Sorry, this feature is not supported yet when use from_documents method.