forked from run-llama/llama_index
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'run-llama:main' into main
- Loading branch information
Showing
363 changed files
with
12,853 additions
and
1,441 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,7 @@ as the storage backend for `VectorStoreIndex`. | |
- LanceDB (`LanceDBVectorStore`) [Installation/Quickstart](https://lancedb.github.io/lancedb/basic/) | ||
- Redis (`RedisVectorStore`). [Installation](https://redis.io/docs/getting-started/installation/). | ||
- Supabase (`SupabaseVectorStore`). [Quickstart](https://supabase.github.io/vecs/api/). | ||
- TiDB (`TiDBVectorStore`). [Installation](https://tidb.cloud/ai). [Python Client](https://github.com/pingcap/tidb-vector-python). | ||
- TimeScale (`TimescaleVectorStore`). [Installation](https://github.com/timescale/python-vector). | ||
- Upstash (`UpstashVectorStore`). [Quickstart](https://upstash.com/docs/vector/overall/getstarted) | ||
- Weaviate (`WeaviateVectorStore`). [Installation](https://weaviate.io/developers/weaviate/installation). [Python Client](https://weaviate.io/developers/weaviate/client-libraries/python). | ||
|
@@ -580,6 +581,21 @@ vector_store = SingleStoreVectorStore( | |
) | ||
``` | ||
|
||
**TiDB** | ||
|
||
```python | ||
from llama_index.vector_stores.tidbvector import TiDBVectorStore | ||
|
||
tidbvec = TiDBVectorStore( | ||
# connection url format | ||
# - mysql+pymysql://[email protected]:4000/test | ||
connection_string="PLACEHOLDER URL", | ||
table_name="llama_index_vectorstore", | ||
distance_strategy="cosine", | ||
vector_dimension=1536, | ||
) | ||
``` | ||
|
||
**Timescale** | ||
|
||
```python | ||
|
Oops, something went wrong.