nodes
from an already existing ChromadbVectoreStore ? raise ValueError(f"doc_id {doc_id} not found.")
ValueError: doc_id e4e59a11-a8d6-4141-b775-9b60d8af1788 not found.
whenever I use this option. node_postprocessors =[ PrevNextNodePostprocessor(docstore=storage_context.docstore,num_nodes=2,mode="both")]
chromadb_vs = ChromaVectorStore(chroma_collection=chromdb_collection)
print("INFO: Initializing the Service Context")
service_context = ServiceContext.from_defaults(
llm=llm,
embed_model="local"
)
print("INFO: Creating Vector Store index object")
index = VectorStoreIndex.from_documents(documents=documents,vector_store=chromadb_vs,service_context=service_context,show_progress=True)
print("INFO: Writing to disk as persistance")
index.vector_store.persist()
DocumentSummaryIndex
using custom llm instead of OpenAI
default. I have set mistral as my LLM in the srvice context
but still it makes some request to OpenAI
and I get OpenAI
rete limit. BTW my embed_model
is also a custom embed model.
llm_model_name= "Mistralai/Mistral-7B-Instruct-v0.2"
llm = HuggingFaceLLM(model_name=llm_model_name)
service_context = ServiceContext.from_defaults(llm=llm,embed_model=embed_model)