Skip to content
Discussion options

You must be logged in to vote

@vaclcer You probably need to change it to:

self.session.execute(
    text(
        "CREATE INDEX IF NOT EXISTS idx_document_chunk_vector "
        "ON document_chunk USING vchordrq (vector vector_cosine_ops) WITH (options = "build.internal.lists = [100]")
    )
)
self.session.execute(
    text(
        "CREATE INDEX IF NOT EXISTS idx_document_chunk_collection_name "
        "ON document_chunk (collection_name);"
    )
)

and then change

SET ivfflat.probes = 1

somewhere else to

SET vchordrq.probes = 1

following https://docs.vectorchord.ai/vectorchord/usage/indexing.html.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@vaclcer
Comment options

@usamoi
Comment options

Answer selected by vaclcer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants