Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pgvector HNSW support in v0.0.8 #309

Closed
luckxuqin opened this issue Apr 24, 2024 · 2 comments · Fixed by #311
Closed

pgvector HNSW support in v0.0.8 #309

luckxuqin opened this issue Apr 24, 2024 · 2 comments · Fixed by #311
Assignees

Comments

@luckxuqin
Copy link

Nice to see pgvector HNSW support in 0.0.8 release, but after upgrade this version I got the following error,

2024-04-24 08:15:36.786 Uncaught app exception
Traceback (most recent call last):
  File "/home/xmark/.pyenv/versions/3.12.3/lib/python3.12/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 584, in _run_script
    exec(code, module.__dict__)
  File "/home/xmark/.pyenv/versions/3.12.3/lib/python3.12/site-packages/vectordb_bench/frontend/pages/run_test.py", line 65, in <module>
    main()
  File "/home/xmark/.pyenv/versions/3.12.3/lib/python3.12/site-packages/vectordb_bench/frontend/pages/run_test.py", line 48, in main
    generate_tasks(activedDbList, dbConfigs, activedCaseList, allCaseConfigs)
  File "/home/xmark/.pyenv/versions/3.12.3/lib/python3.12/site-packages/vectordb_bench/frontend/components/run_test/generateTasks.py", line 15, in generate_tasks
    db_case_config=db.case_config_cls(
                   ^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not callable

Also I don't see how to switch to HNSW index for pgvector in the web console, it defaults to use IVFFLAT, correct?

@alwayslove2013 alwayslove2013 self-assigned this Apr 25, 2024
@alwayslove2013 alwayslove2013 linked a pull request Apr 26, 2024 that will close this issue
@alwayslove2013
Copy link
Collaborator

Fixed.

@alwayslove2013
Copy link
Collaborator

@luckxuqin Now you can choose HNSW or IVFFlat in the web ui.

how to switch to HNSW index for pgvector in the web console
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants