Find answers from the community

Home
Members
ispan3tz
i
ispan3tz
Offline, last seen 3 months ago
Joined September 25, 2024
@kapa.ai how to convert Document to base nodes?
10 comments
k
i
@kapa.ai best method to measure the similarity(-score) between two given text/answers?
27 comments
k
i
@kapa.ai How to convert TextNode to IndexNode?
12 comments
k
i
@kapa.ai how can I get all nodes from a docstore asynchronously? The docstore is in PGVector (keyval_docstore)
11 comments
k
i
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)
1 comment
i
@kapa.ai how to get _ref_doc_collection in a PGVectoreStore
5 comments
k
i
@kapa.ai how to mock the pgvector store?
2 comments
k