Skip to main content

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-ce or 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llama_index_vector_stores_synapcores-0.1.0.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file llama_index_vector_stores_synapcores-0.1.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_vector_stores_synapcores-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3b1ff46d9cc32445ed7fedae565f79ad8df24478b8ac69ad8caaefc7beb3481c
MD5 d2c8a300b89dfb61ee2a086b7b7d5443
BLAKE2b-256 5ed3be847a203754027c07999665164e1eea6893e2b8de5844d58d34dd01dcb4

See more details on using hashes here.

File details

Details for the file llama_index_vector_stores_synapcores-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_vector_stores_synapcores-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 460393bd5bd058feb2e66dba59259bffe3a644fc42a3b1c29a090326e8b5c7a2
MD5 cec75ced387f74235643e8b08eaf8dfa
BLAKE2b-256 ad488675e41be528a079f079009f661d08ecf228b6bcc7c6961a01f908545359

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page