RAG and GraphRAG on LlamaIndex with one database — SynapCores
We just published two LlamaIndex integration packages that turn SynapCores into a one-binary backend for both standard RAG and GraphRAG.
pip install llama-index llama-index-vector-stores-synapcores
pip install llama-index llama-index-graph-stores-synapcores
from llama_index.core import VectorStoreIndex
from llama_index.vector_stores.synapcores import SynapCoresVectorStore
vector_store = SynapCoresVectorStore(
uri="http://localhost:8080",
table_name="my_docs",
embedding_dim=1536,
)
index = VectorStoreIndex.from_documents(docs, storage_context=...)
response = index.as_query_engine().query("What's in this document?")
If you've shipped an agent on LlamaIndex you already know the math. The integration directory lists Pinecone, Weaviate, Qdrant, Milvus, pgvector, and a dozen more for embeddings. It lists Neo4j, NebulaGraph, FalkorDB, Neptune, and a few more for property graphs. The two lists don't overlap. To build a GraphRAG pipeline you stand up two clusters.
That's what we wanted to collapse.
What's in each package
llama-index-vector-stores-synapcores
SynapCoresVectorStore(BasePydanticVectorStore). Standard LlamaIndex vector store integration shape — add(nodes), delete(ref_doc_id), query(VectorStoreQuery), plus the optional delete_nodes / clear / get_nodes extensions. async_add / aquery / adelete wrappers via asyncio.to_thread so it works inside an event loop without blocking.
- HNSW vector index on a
VECTOR(N)column. Cosine, Euclidean, or dot-product distance. - Full LlamaIndex
MetadataFiltersgrammar —EQ,NE,GT/GTE/LT/LTE,IN,NIN,TEXT_MATCH,TEXT_MATCH_INSENSITIVE,CONTAINS,IS_EMPTY, plusAND/OR/NOTwith nested groups. - Upsert on the primary key — re-running
from_documents()doesn't duplicate. VectorStoreIndex.from_vector_store(vs)for picking up existing tables.
llama-index-graph-stores-synapcores
SynapCoresPropertyGraphStore(PropertyGraphStore). Implements all 8 required abstract methods plus the async surface:
upsert_nodes(LabelledNode...)— bothEntityNode(withnameandlabel) andChunkNode(withtextand embedding). Mapped to:Entityand:ChunkCypher labels with agraph_nameproperty tag so multiple logical graphs share one engine.upsert_relations(Relation...)— typed edges with property maps.get(properties, ids)andget_triplets(entity_names, relation_names, properties, ids)for filtered fetches.get_rel_map(graph_nodes, depth, limit, ignore_rels)— depth-bounded BFS expansion, the load-bearing primitive forPropertyGraphIndexretrieval.structured_query(cypher, param_map)— pass-through Cypher with named-param substitution.vector_query(VectorStoreQuery)— cosine overChunkNodeembeddings.
Both supports_structured_queries and supports_vector_queries are True. We declare a real Cypher surface, not just node CRUD.
Why one database matters here
The pitch you hear when someone is debating Pinecone vs. Weaviate is "we're faster on recall@10 at QPS X." That's not the conversation that matters when you start gluing vectors to a graph.
The conversation that matters is operational. You picked Pinecone because the LlamaIndex integration was first-class. You added Neo4j because the LlamaIndex Neo4jPropertyGraphStore integration was clean. Now you have:
- Two clusters to provision.
- Two SDKs to keep in lockstep.
- Two networks of secrets.
- Two backup playbooks.
- Two outage modes.
- Two sets of cloud bills.
- And a synchronization pipeline between them, because the chunks you embed are the same chunks that mention the entities in your graph.
SynapCores collapses all of that. One binary. One config file. One persistence directory. Embeddings live next to graph nodes — literally the same RocksDB column family — so the synchronization pipeline is "issue both writes in the same connection."
That's the actual delta. Not benchmarks. Not API ergonomics. Operational surface area.