https://github.com/dblock/vectordb-client
WIP: generic vectordb-client
https://github.com/dblock/vectordb-client
Last synced: about 1 year ago
JSON representation
WIP: generic vectordb-client
- Host: GitHub
- URL: https://github.com/dblock/vectordb-client
- Owner: dblock
- License: apache-2.0
- Created: 2023-06-14T22:56:03.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-16T12:34:40.000Z (almost 3 years ago)
- Last Synced: 2025-02-10T13:44:12.186Z (over 1 year ago)
- Language: Python
- Size: 22.5 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
- [VectorDB Client](#vectordb-client)
- [Using](#using)
- [Pinecone](#pinecone)
- [OpenSearch](#opensearch)
- [Developing](#developing)
- [License](#license)
- [Copyright](#copyright)
## VectorDB Client
Currently super-experimental-WIP. An attempt at a Python library that supports multiple vector databases with the same interface.
### Using
#### Pinecone
See [pinecone/hello.py](samples/pinecone/hello.py).
Sign up for Pinecone, get an `API_TOKEN` and a `PROJECT_ID`.
Run a working sample as follows.
```
API_TOKEN=... PROJECT_ID=... ENDPOINT=https://us-west4-gcp-free.pinecone.io poetry run samples/pinecone/hello.py
```
#### OpenSearch
Download and run OpenSearch.
```
docker pull opensearchproject/opensearch:latest
docker run -d -p 9200:9200 -p 9600:9600 -e "discovery.type=single-node" opensearchproject/opensearch:latest
```
Run a working sample as follows.
```
USERNAME=admin PASSWORD=admin ENDPOINT=https://localhost:9200 poetry run samples/open_search/hello.py
```
### Developing
See [DEVELOPER_GUIDE](DEVELOPER_GUIDE.md).
### License
This project is licensed under the [Apache v2.0 License](LICENSE.txt).
### Copyright
Copyright Daniel Doubrovkine, and contributors.