Find answers from the community

Home
Members
John Davies
J
John Davies
Offline, last seen 3 months ago
Joined September 25, 2024
Hi folks, a quick question I'm struggling to answer through my own research and attempts at reading the docs. I have some code (please forgive the lack of formatting, I'm on my phone)...

def get_query_engine(docs):
index=VectorStoreIndex.from_documents(docs, show_progress=True)
return index.as_query_engine(similarity_top_k=5, response_mode='compact')
It works just fine, but I would like to retrieve/get the arrays/lists of embeddings from the index variable.
The doc is chunked up and there are embeddings in there but I can't seem to find the syntax to access them.
I can run the embeddings myself no problem but I'm using LlamaIndex now and can't seem to access them.
Thanks in advance.
6 comments
L
J
W