core-sdk
Guides Graphiti Python SDK workflows for ingest, search, backends, and custom types.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- core-sdk
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Guides Graphiti Python SDK workflows for ingest, search, backends, and custom types.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/api-reference.md5.8 KB
- 参考文档references/troubleshooting.md4.6 KB
- 参考文档references/workflows.md5.9 KB
- 脚本scripts/quickstart_graphiti.py5.0 KB
03 SKILL.md 正文
core-sdk
Use this sub-skill for the Graphiti Python library itself: building temporal context graphs, choosing a backend driver, ingesting episodes, searching facts or nodes, and wiring custom entity or edge types.
Read first
references/api-reference.mdfor the verifiedGraphitiAPI, driver constructors, search recipes, and the node/edge objects you will handle.references/workflows.mdfor the shortest working paths: quickstart ingest, search, custom types, provider selection, and tracing.references/troubleshooting.mdwhen the SDK import fails, a backend is missing, search returns validation errors, or the provider/model setup is unreliable.scripts/quickstart_graphiti.pyfor a runnable smoke that adds a few sample episodes and prints search results.
What belongs here
This sub-skill owns the SDK questions people naturally ask directly:
- "How do I create a
Graphitiinstance?" - "Should I use Neo4j or FalkorDB?"
- "How do I add episodes or bulk episodes?"
- "How do I search facts vs nodes?"
- "How do I customize entity or edge types?"
- "How do I add a single triplet without episode extraction?"
- "How do I summarize a saga or build communities?"
- "How do I use OpenAI-compatible providers, Azure OpenAI, Gemini, or local structured-output models?"
What does not belong here
Route these elsewhere:
- REST route questions, queueing, or Docker deployment ->
sub-skills/rest-service/ - MCP tool questions, transports, or client integrations ->
sub-skills/mcp-server/ - Repo maintenance, test policy, or import packaging details -> root references
Typical workflow
- Choose the backend driver and credentials.
- Build indices and constraints.
- Add one episode or a small batch of episodes.
- Search with
search()for facts orsearch_()for nodes and richer recipes. - Optionally build communities, summarize a saga, or inspect provenance.
- Use the bundled quickstart script to confirm the environment.
API families to remember
- Core client:
Graphiti - Drivers:
Neo4jDriver,FalkorDriver - Search recipes:
NODE_HYBRID_SEARCH_RRF,EDGE_HYBRID_SEARCH_RRF,COMBINED_HYBRID_SEARCH_CROSS_ENCODER - Models:
EntityNode,EpisodicNode,CommunityNode,SagaNode,EntityEdge,EpisodicEdge,CommunityEdge,HasEpisodeEdge,NextEpisodeEdge - Clients:
OpenAIClient,OpenAIGenericClient,OpenAIEmbedder,OpenAIRerankerClient
Success criteria
A future agent should be able to use this sub-skill to:
- install the right Graphiti package and backend extra,
- create a driver and instantiate
Graphiti, - add and search episodes without reopening the original repository,
- choose the right search path or custom-type path,
- and diagnose the predictable import, backend, or provider failure modes.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).