PS

plateerlab/synaptic-memory

Database management

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

33 stars 1 forks 품질 54 트렌드 15NOASSERTION

기술 그래프 + MCP 도구 서버 LLM 에이전트 하이브리드 검색, 라이브 DB 동기화, 한국어 FTS 및 메모리 피드백.

개요

LLM Agent에 대한 지식 그래프 + MCP 도구 서버, 하이브리드 검색, CDC 기반 라이브 데이터베이스 동기화 및 한국 FTS 내장. 그 명령은 작은 SQLite-backed 그래프를 구축하고 세 검색을 실행합니다. — 모든 인덱스 시간. Omit --db in-memory, 0-dependency 연기 시험. 확장된 예제의 전체 소스: examples/quickstart.py. 일반 RAG는 일반적으로 독립적 인 펑크에서 답변합니다. Synaptic는 먼저 그래프를 구축하므로 에이전트는 관계를 검색 할 수 있으므로 구조화 된 행을 검사하고 증거가 도움이되는 것을 기억하십시오. 벡터 데이터베이스 교체가 아닙니다. 기존 문서, SQL data, embedding endpoint, Agent runtime의 그래프와 툴 레이어입니다. 그게 다. Auto-detects 파일 형식 또는 DB 스키마는 투과성 프로파일을 생성, ingests, indexes, FK 가장자리를 구축합니다. — mode="cdc" enables incremental updates: table with the updated at-style column are read with the watermark filter, 다른 사람 fall back to per-row content hashing.

개요(AI 번역)

기본 경로: 인덱스 시간에 0 API 호출. 제로인프라 제로 락 인. LLM Agent의 지식 그래프 + MCP 도구 서버, 하이브리드 검색, CDC 기반 라이브 데이터베이스 동기화 및 한국 FTS 내장.

README 소개


5분 시작

그 명령은 작은 SQLite-backed 그래프를 구축하고 세 검색을 실행합니다. — 모두 ** 인덱스 시간에 LLM**을 호출하지 않고. Omit --db in-memory에 대한, Zero-dependency 연기 시험. 확장 된 예제의 전체 소스 : examples/quickstart.py.


왜 그냥 RAG?

일반 RAG는 일반적으로 독립적 인 펑크에서 답변합니다. Synaptic는 그래프를 먼저 구축합니다. 그래서 에이전트는 검색 할 수, 관계 따라, 구조 행을 검사, 기억 어떤 증거가 도움이되었습니다.

일반 RAG 시냅틱 메모리
펑크 + 벡터 검색 문서, 펑크, 행, 가장자리
일반적으로 데이터 변경에 재건 CDC sync for live databases
싱글샷 리트리발 by default 멀티턴 탐험용 MCP 공구
의견 밖에 인덱스 옵션 메모리 이벤트, 피드백, 건강 시그널

벡터 데이터베이스 교체가 아닙니다. 그것은 주변에 도표와 공구 층입니다

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

Synaptic Memory

Default path: zero API calls at index time. Zero infra. Zero lock-in. A knowledge graph + MCP tool server for LLM agents, with hybrid retrieval, CDC-based live database sync, and Korean FTS built in.

한국어 README


5-minute start

pip install "synaptic-memory[sqlite,korean,vector]"
synaptic-quickstart --db quickstart.db

That command builds a tiny SQLite-backed graph and runs three searches — all without calling any LLM at indexing time. Omit --db for an in-memory, zero-dependency smoke test. Full source for the expanded example: examples/quickstart.py.


Why not just RAG?

Plain RAG usually answers from independent chunks. Synaptic builds a graph first, so an agent can search, follow relations, inspect structured rows, and remember which evidence helped.

Plain RAG Synaptic Memory
chunks + vector search documents, chunks, rows, and edges
usually rebuilds on data change CDC sync for live databases
single-shot retrieval by default MCP tools for multi-turn exploration
feedback lives outside the index optional memory events, feedback, and health signals

It is not a vector database replacement. It is the graph and tool layer around your existing documents, SQL data, embedding endpoint, and agent runtime.


import asyncio
from synaptic import SynapticGraph

async def main():
    # Any data → knowledge graph (CSV, JSONL, directory)
    graph = await SynapticGraph.from_data("./my_data/", preset="rag")
    try:
        result = await graph.search("my question")
        print(result.nodes[0].node.title if result.nodes else "no result")
    finally:
        await graph.close()

asyncio.run(main())

That’s it. Auto-detects file format or DB schema, generates an ontology profile, ingests, indexes, builds FK edges.

Presets keep the common knobs compact:

# local: deterministic, no external services (default)
graph = await SynapticGraph.from_chunks(chunks, preset="local")

# rag: reads SYNAPTIC_EMBED_URL / SYNAPTIC_RERANK_URL if set
graph = await SynapticGraph.from_data("./docs/", preset="rag")

# agent: rag + deterministic component bridging for multi-turn exploration
graph = await SynapticGraph.from_data("./docs/", preset="agent")

Live database sync (CDC) — mode="cdc" enables incremental updates: tables with an updated_at-style column are read with a watermark filter, others fall back to per-row content hashing. Deletes are detected via a TEMP TABLE LEFT JOIN; FK rewires re-link the corresponding RELATED edges. Search results are

GitHub에서 전체 README 보기

설치

This server does not publish a one-line install command.

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →