Log in
Log into community
Find answers from the community
View all posts
Related posts
Did this answer your question?
π
π
π
Powered by
Hall
Inactive
Updated 9 months ago
0
Follow
llama_index/llama-index-core/llama_index...
llama_index/llama-index-core/llama_index...
Inactive
0
Follow
k
kush2861
9 months ago
Β·
I am trying to find where the query embeddings are created once I enter my query but I can't seem to find it. I thought it is using
Plain Text
Copy
get_top_k_embeddings
but when I print query_embeddings_np nothing appears in terminal.
https://github.com/run-llama/llama_index/blob/main/llama-index-core/llama_index/core/indices/query/embedding_utils.py
W
L
k
3 comments
Share
Open in Discord
W
WhiteFang_Jr
9 months ago
All the embedding models are subclassed using this base class:
https://github.com/run-llama/llama_index/blob/main/llama-index-core/llama_index/core/base/embeddings/base.py
You can start debugging in this code from here:
https://github.com/run-llama/llama_index/blob/2f2d5a4735dd82f8acd2f630c745758e92202be2/llama-index-core/llama_index/core/base/embeddings/base.py#L232
L
Logan M
9 months ago
Query embeddings get created here
https://github.com/run-llama/llama_index/blob/2f2d5a4735dd82f8acd2f630c745758e92202be2/llama-index-core/llama_index/core/indices/vector_store/retrievers/retriever.py#L97
k
kush2861
9 months ago
Thanks @Logan M and @WhiteFang_Jr
Add a reply
Sign up and join the conversation on Discord
Join on Discord