Find answers from the community

Updated 7 months ago

Hello, I'm new to LlamaIndex and I want

Hello, I'm new to LlamaIndex and I want to use Pgvector as my vector store. How do I specify the index type (HNSW or IVFFlat) during the indexing step? I don't see any parameters specifying the index type. There is only the possibility to choose the index during querying in PgVector Query Options. But we need to specify the index type before inserting vectors, right?
L
s
4 comments
I think the pgvector store is likely lacking these options -- contributions certaintly welcome though
So what is the default index used in llamaindex when we call pgvector ?
the code is only using index name in query time, but how the index can excute the query if the index was created with different algo ! do you think maybe it's creating the index on the fly ? https://docs.llamaindex.ai/en/latest/examples/vector_stores/postgres/#hnsw-ef-search
Add a reply
Sign up and join the conversation on Discord