An open API service indexing awesome lists of open source software.

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

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.