LlamaIndex vector store integration for SynapCores — the AI-native SQL engine.
Reason this release was yanked:
inherent bug
Project description
llama-index-vector-stores-synapcores
LlamaIndex vector store integration for SynapCores — the AI-native SQL engine that combines vectors, graph, SQL, and AI inference in one self-hosted binary.
pip install llama-index llama-index-vector-stores-synapcores
Quickstart
from llama_index.core import VectorStoreIndex, StorageContext
from llama_index.core.readers import SimpleDirectoryReader
from llama_index.vector_stores.synapcores import SynapCoresVectorStore
# 1. Start the engine: docker run -p 8080:8080 -e AIDB_ACCEPT_LICENSE=1 synapcores/community:latest
# 2. Point the integration at it
vector_store = SynapCoresVectorStore(
uri="http://localhost:8080",
table_name="my_docs",
embedding_dim=1536, # match your embedding model
)
# 3. Standard LlamaIndex flow — no per-vendor weirdness
docs = SimpleDirectoryReader("./data").load_data()
index = VectorStoreIndex.from_documents(
docs,
storage_context=StorageContext.from_defaults(vector_store=vector_store),
)
response = index.as_query_engine().query("What does this document say?")
print(response)
Configuration
| Argument | Default | Env fallback |
|---|---|---|
uri |
http://localhost:8080 |
SYNAPCORES_URI |
database |
default |
SYNAPCORES_DATABASE |
auth_token |
None |
SYNAPCORES_AUTH_TOKEN |
table_name |
llama_nodes |
— |
embedding_dim |
1536 |
— |
distance |
"cosine" (also: "euclidean", "dot_product") |
— |
overwrite |
False |
— |
batch_size |
100 |
— |
Metadata filters
LlamaIndex's full filter grammar maps to SynapCores' JSON arrow operator:
from llama_index.core.vector_stores import MetadataFilters, MetadataFilter, FilterOperator
filters = MetadataFilters(filters=[
MetadataFilter(key="tenant_id", value="acme", operator=FilterOperator.EQ),
MetadataFilter(key="doc_type", value=["policy", "contract"], operator=FilterOperator.IN),
])
retriever = index.as_retriever(filters=filters)
Supported operators: EQ, NE, GT, GTE, LT, LTE, IN, NIN, TEXT_MATCH, TEXT_MATCH_INSENSITIVE, CONTAINS, IS_EMPTY. Conditions: AND, OR, NOT. Filter groups may be nested. ANY / ALL (array-membership) are tracked for v0.2.0.
Existing store
If you've already ingested:
vector_store = SynapCoresVectorStore(uri="http://localhost:8080", table_name="my_docs", embedding_dim=1536)
index = VectorStoreIndex.from_vector_store(vector_store)
Engine requirements
synapcores/community:v1.7.0.2-ceor newer
Async
async_add, aquery, adelete, adelete_nodes, aclear are available. v0.1.0 wraps the sync client via asyncio.to_thread — non-blocking but uses a thread per call. Native httpx path is on the v0.2.0 roadmap.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llama_index_vector_stores_synapcores-0.1.0.tar.gz.
File metadata
- Download URL: llama_index_vector_stores_synapcores-0.1.0.tar.gz
- Upload date:
- Size: 12.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b1ff46d9cc32445ed7fedae565f79ad8df24478b8ac69ad8caaefc7beb3481c
|
|
| MD5 |
d2c8a300b89dfb61ee2a086b7b7d5443
|
|
| BLAKE2b-256 |
5ed3be847a203754027c07999665164e1eea6893e2b8de5844d58d34dd01dcb4
|
File details
Details for the file llama_index_vector_stores_synapcores-0.1.0-py3-none-any.whl.
File metadata
- Download URL: llama_index_vector_stores_synapcores-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
460393bd5bd058feb2e66dba59259bffe3a644fc42a3b1c29a090326e8b5c7a2
|
|
| MD5 |
cec75ced387f74235643e8b08eaf8dfa
|
|
| BLAKE2b-256 |
ad488675e41be528a079f079009f661d08ecf228b6bcc7c6961a01f908545359
|