You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add async and sync hybrid search index creation methods (#244)
See #238 for details.
Added code to expose the functions (aapply_hybrid_search_index,
apply_hybrid_search_index) for adding an index to the tsv column in
hybrid search.
I also fixed minor typos in the existing test code for better
readability.
```diff
-DEFAULT_TABLE_ASYNC = "default_sync" ...
+DEFAULT_TABLE_ASYNC = "default_async" ...
```
- `langchain_postgres/v2/vectorstores.py`: Added new index creation
methods
- `tests/unit_tests/v2/test_pg_vectorstore_index.py`: Added
comprehensive test coverage
- `pyproject.toml`: Updated test dependencies
- `tests/utils.py`: Minor updates
- `DEVELOPMENT.md`: Minor updates
It also includes changes to align test-related environment variable
settings between `DEVELOPMENT.md` and `utils.py`.
For testing, I initially attempted to use the existing dependency
`psycopg`, but on my current environment (not installed deps like libpq,
MacBook Apple M4 Max), running with the existing dependency caused
errors. To ensure compatibility across environments, I added
`psycopg[binary]`.
<details>
<summary> psycopg error </summary>
```bash
import_from_libpq()
.venv/lib/python3.13/site-packages/psycopg/pq/__init__.py:108: in import_from_libpq
raise ImportError(
E ImportError: no pq wrapper available.
E Attempts made:
E - couldn't import psycopg 'c' implementation: No module named 'psycopg_c'
```
</details>
---------
Co-authored-by: dishaprakash <57954147+dishaprakash@users.noreply.github.com>
0 commit comments