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
|`DATASTORE`| Yes | This specifies the vector database provider you want to use to store and query embeddings. You can choose from `chroma`, `pinecone`, `weaviate`, `zilliz`, `milvus`, `qdrant`, `redis`, `azuresearch`, `supabase`, `postgres`, `analyticdb`. |
282
282
|`BEARER_TOKEN`| Yes | This is a secret token that you need to authenticate your requests to the API. You can generate one using any tool or method you prefer, such as [jwt.io](https://jwt.io/). |
283
283
|`OPENAI_API_KEY`| Yes | This is your OpenAI API key that you need to generate embeddings using the `text-embedding-ada-002` model. You can get an API key by creating an account on [OpenAI](https://openai.com/). |
@@ -348,11 +348,8 @@ For detailed setup instructions, refer to [`/docs/providers/llama/setup.md`](/do
348
348
[Postgres](https://www.postgresql.org) offers an easy and efficient way to store vectors via [pgvector](https://github.com/pgvector/pgvector) extension. To use pgvector, you will need to set up a PostgreSQL database with the pgvector extension enabled. For example, you can [use docker](https://www.docker.com/blog/how-to-use-the-postgres-docker-official-image/) to run locally. For a hosted/managed solution, you can use any of the cloud vendors which support [pgvector](https://github.com/pgvector/pgvector#hosted-postgres). For detailed setup instructions, refer to [`/docs/providers/postgres/setup.md`](/docs/providers/postgres/setup.md).
349
349
350
350
#### AnalyticDB
351
-
[AnalyticDB](https://www.alibabacloud.com/help/en/analyticdb-for-postgresql/latest/product-introduction-overview) is a distributed cloud-native vector database designed for storing documents and vector embeddings.
352
-
As a high-performance vector database, it is fully compatible with PostgreSQL syntax, making it easy to use. Managed by Alibaba Cloud, AnalyticDB is a cloud-native database with a powerful vector compute engine.
353
-
Its out-of-the-box experience enables processing of billions of data vectors and offers a wide range of features, including indexing algorithms, structured and unstructured data capabilities, real-time updates, distance metrics, scalar filtering, and time travel searches.
354
-
Additionally, it provides full OLAP database functionality and an SLA commitment for production use.
355
-
For detailed setup instructions, refer to [`/docs/providers/analyticdb/setup.md`](/docs/providers/analyticdb/setup.md).
351
+
352
+
[AnalyticDB](https://www.alibabacloud.com/help/en/analyticdb-for-postgresql/latest/product-introduction-overview) is a distributed cloud-native vector database designed for storing documents and vector embeddings. It is fully compatible with PostgreSQL syntax and managed by Alibaba Cloud. AnalyticDB offers a powerful vector compute engine, processing billions of data vectors and providing features such as indexing algorithms, structured and unstructured data capabilities, real-time updates, distance metrics, scalar filtering, and time travel searches. For detailed setup instructions, refer to [`/docs/providers/analyticdb/setup.md`](/docs/providers/analyticdb/setup.md).
-**Zilliz:** Remove `pinecone-client`, `weaviate-client`, `qdrant-client`, `redis`, `chromadb`, `llama-index`, `azure-identity` and `azure-search-documents`, `supabase`, `psycopg2`+`pgvector`, and `psycopg2cffi`.
10
+
-**Milvus:** Remove `pinecone-client`, `weaviate-client`, `qdrant-client`, `redis`, `chromadb`, `llama-index`, `azure-identity` and `azure-search-documents`, `supabase`, `psycopg2`+`pgvector`, and `psycopg2cffi`.
11
+
-**Qdrant:** Remove `pinecone-client`, `weaviate-client`, `pymilvus`, `redis`, `chromadb`, `llama-index`, `azure-identity` and `azure-search-documents`, `supabase`, `psycopg2`+`pgvector`, and `psycopg2cffi`.
12
+
-**Redis:** Remove `pinecone-client`, `weaviate-client`, `pymilvus`, `qdrant-client`, `chromadb`, `llama-index`, `azure-identity` and `azure-search-documents`, `supabase`, `psycopg2`+`pgvector`, and `psycopg2cffi`.
13
+
-**LlamaIndex:** Remove `pinecone-client`, `weaviate-client`, `pymilvus`, `qdrant-client`, `chromadb`, `redis`, `azure-identity` and `azure-search-documents`, `supabase`, `psycopg2`+`pgvector`, and `psycopg2cffi`.
14
+
-**Chroma:**: Remove `pinecone-client`, `weaviate-client`, `pymilvus`, `qdrant-client`, `llama-index`, `redis`, `azure-identity` and `azure-search-documents`, `supabase`, `psycopg2`+`pgvector`, and `psycopg2cffi`.
15
+
-**Azure Cognitive Search**: Remove `pinecone-client`, `weaviate-client`, `pymilvus`, `qdrant-client`, `llama-index`, `redis` and `chromadb`, `supabase`, `psycopg2`+`pgvector`, and `psycopg2cffi`.
16
+
-**Supabase:** Remove `pinecone-client`, `weaviate-client`, `pymilvus`, `qdrant-client`, `redis`, `llama-index`, `azure-identity` and `azure-search-documents`, `psycopg2`+`pgvector`, and `psycopg2cffi`.
17
+
-**Postgres:** Remove `pinecone-client`, `weaviate-client`, `pymilvus`, `qdrant-client`, `redis`, `llama-index`, `azure-identity` and `azure-search-documents`, `supabase`, and `psycopg2cffi`.
18
+
-**AnalyticDB:** Remove `pinecone-client`, `weaviate-client`, `pymilvus`, `qdrant-client`, `redis`, `llama-index`, `azure-identity` and `azure-search-documents`, `supabase`, and `psycopg2`+`pgvector`.
18
19
19
20
After removing the unnecessary packages from the `pyproject.toml` file, you don't need to run `poetry lock` and `poetry install` manually. The provided Dockerfile takes care of installing the required dependencies using the `requirements.txt` file generated by the `poetry export` command.
[AnalyticDB](https://www.alibabacloud.com/help/en/analyticdb-for-postgresql/latest/product-introduction-overview) is a distributed cloud-native vector database designed for storing documents and vector embeddings.
4
-
As a high-performance vector database, it is fully compatible with PostgreSQL syntax, making it easy to use.
5
-
Managed by Alibaba Cloud, AnalyticDB is a cloud-native database with a powerful vector compute engine.
6
-
Its out-of-the-box experience enables processing of billions of data vectors and offers a wide range of features, including indexing algorithms, structured and unstructured data capabilities, real-time updates, distance metrics, scalar filtering, and time travel searches.
7
-
Additionally, it provides full OLAP database functionality and an SLA commitment for production use.
8
-
9
-
## Install requirements
10
-
Running the following command to install requirement packages. It will install `psycopg2cffi` package.
3
+
[AnalyticDB](https://www.alibabacloud.com/help/en/analyticdb-for-postgresql/latest/product-introduction-overview) is a distributed cloud-native vector database designed for storing documents and vector embeddings. It is a high-performance vector database that is fully compatible with PostgreSQL syntax, making it easy to use. Managed by Alibaba Cloud, AnalyticDB offers a powerful vector compute engine, processing billions of data vectors and providing a wide range of features, including indexing algorithms, structured and unstructured data capabilities, real-time updates, distance metrics, scalar filtering, and time travel searches. Additionally, it offers full OLAP database functionality and an SLA commitment for production use.
4
+
5
+
## Install Requirements
6
+
7
+
Run the following command to install the required packages, including the `psycopg2cffi` package:
8
+
11
9
```
12
-
poetry install --extras "postgresql"
10
+
poetry install --extras "postgresql"
13
11
```
14
-
If your meet with this issue `Error: pg_config executable not found.`
15
-
It appears that the `pg_config` executable is not found in your system. The `pg_config` utility is part of the PostgreSQL development package, which is required for building `psycopg2cffi`.
16
12
17
-
To resolve this issue, you need to install the PostgreSQL development package on your system. Here's how to do it on different Linux distributions:
13
+
If you encounter the `Error: pg_config executable not found.`issue, you need to install the PostgreSQL development package on your system. Follow the instructions for your specific Linux distribution:
18
14
19
-
1.On Debian-based systems (e.g., Ubuntu):
15
+
1. Debian-based systems (e.g., Ubuntu):
20
16
21
17
```bash
22
18
sudo apt-get update
23
19
sudo apt-get install libpq-dev
24
20
```
25
21
26
-
2.On RHEL-based systems (e.g., CentOS, Fedora):
22
+
2. RHEL-based systems (e.g., CentOS, Fedora):
27
23
28
24
```bash
29
25
sudo yum install postgresql-devel
30
26
```
31
27
32
-
3.On Arch-based systems (e.g., Manjaro, Arch Linux):
28
+
3. Arch-based systems (e.g., Manjaro, Arch Linux):
33
29
34
30
```bash
35
31
sudo pacman -S postgresql-libs
36
32
```
37
33
38
-
4. On macOS
34
+
4. macOS:
35
+
39
36
```bash
40
37
brew install postgresql
41
38
```
42
39
43
-
After installing the required package, try to install `psycopg2cffi` again. If the `pg_config` executable is still not found, you might need to add its location to your system's `PATH` variable. You can typically find the `pg_config` executable in the `bin` directory of your PostgreSQL installation, for example `/usr/pgsql-13/bin/pg_config`. To add it to your `PATH` variable, use the following command (replace the path with the correct one for your system):
40
+
After installing the required package, try to install `psycopg2cffi` again. If the `pg_config` executable is still not found, add its location to your system's `PATH` variable. You can typically find the `pg_config` executable in the `bin` directory of your PostgreSQL installation, for example `/usr/pgsql-13/bin/pg_config`. To add it to your `PATH` variable, use the following command (replace the path with the correct one for your system):
44
41
45
42
```bash
46
43
export PATH=$PATH:/usr/pgsql-13/bin
@@ -51,7 +48,7 @@ Now, try installing `psycopg2cffi` again using Poetry.
0 commit comments