Find answers from the community

Updated 7 months ago

Hi community,

Hi community,
Maybe someone did this, so I need to add full document to context instead of nodes. is it possible with Llamaindex? did ahyone do this? if yes, how...thanks

Tried this but doesn't work:

Create Document Store
Create docstore for original documents. Embed each document, and put in docstore. We will refer to this later in our hybrid retrieval algorithm!

from llama_index.core.storage.docstore import SimpleDocumentStore

for doc in docs:
embedding = embed_model.get_text_embedding(doc.get_content())
doc.embedding = embedding

docstore = SimpleDocumentStore()
docstore.add_documents(docs)
i
1 comment
@Logan M any suggestions? Thanks πŸ˜‡
Add a reply
Sign up and join the conversation on Discord