Commit Graph

56 Commits

Author SHA1 Message Date
Dominik Seemann fb0ac4b5fe fix(graph): replace passthrough reranker with ollama-backed cross-encoder
Graphiti's default cross-encoder hard-codes the OpenAI gpt-4.1-nano model
and depends on OpenAI-specific logprobs/logit_bias, so the adapter has
been injecting a no-op _PassthroughReranker just to keep search code
paths working. Search results consumed by SearchResult, InsightForge,
Panorama, and Interview were therefore returned in Graphiti's RRF order
with no real reranking signal.

Add an Ollama-backed CrossEncoderClient that scores passages through a
local chat model via the OpenAI-compatible /v1 surface and wire it into
_get_graphiti() behind a RERANKER_PROVIDER switch (default: ollama).
Construction is side-effect-free and the rank() method never raises:
per-passage parse failures degrade to a deterministic low score, and a
whole-call failure falls back to passthrough order with a single WARNING
log so Flask keeps serving when Ollama is unreachable. Setting
RERANKER_PROVIDER=none preserves the legacy passthrough for CI and slim
containers that cannot pull the model.

Closes #39
2026-05-11 10:39:50 +00:00
Dominik Seemann ebeff4940d fix(graph): default embeddings to local ollama and gate empty graph builds
Two coupled changes that together restore non-empty post-migration graph
builds and remove the silent "succeeded but empty" outcome.

Root cause: Config defaulted EMBEDDING_MODEL to OpenAI text-embedding-3-small
(1536 dim), but Graphiti's Neo4j vector index is 1024 dim. With the
documented Dashscope LLM default, EMBEDDING_API_KEY/EMBEDDING_BASE_URL
fell back to LLM_*, producing either a 4xx (since #29 propagates as
Task.FAILED) or a write that landed metadata but no entities.

Changes:
- Flip Config defaults to local Ollama (mxbai-embed-large, 1024 dim,
  http://localhost:11434/v1). Override semantics unchanged: explicit
  EMBEDDING_* env vars continue to win, so existing OpenAI/Gemini setups
  are not affected.
- Gate _build_graph_worker on a non-zero entity-node count before
  complete_task. Mirrors the existing _recover_stuck_projects rule;
  surfaces any residual silent failure as Task.FAILED with the new
  progress.emptyGraphFailure locale key, instead of marking the project
  GRAPH_COMPLETED on an empty graph.
- Update README, CLAUDE.md, and docker-compose.yml comments to reflect
  Ollama as the active default and OpenAI/Gemini as commented fallbacks.
- The matching .env.example diff is recorded in
  .kiro/specs/graph-build-empty-fix/HANDOFF.md for manual operator apply
  (file is hook-protected from the assistant).

Spec: .kiro/specs/graph-build-empty-fix/

Closes #37
2026-05-11 09:43:28 +00:00
Dominik Seemann 729a51ea82
Merge pull request #29 from salestech-group/fix/18-graphiti-loud-embedding-failures
fix(graphiti): surface embedding failures and document ollama embedder
2026-05-08 11:08:22 +02:00
Dominik Seemann b8de81a539 fix(graphiti): surface embedding failures and document ollama embedder
Replace the silent placeholder-UUID fallback in
_GraphNamespace.add_batch with logger.exception(...) + raise so
embedder misconfiguration (404 unknown model, connection refused, etc.)
fails the surrounding graph-build Task with a visible error instead of
producing a Task that looks completed while the graph stays empty.

Document the existing-but-undocumented Ollama embedder configuration
in .env.example, CLAUDE.md, README.md, and docker-compose.yml.
mxbai-embed-large is the recommended local model because its 1024-dim
output matches Graphiti's default EMBEDDING_DIM. Adds a curl smoke
test to verify embedder reachability before the first graph build.

No new env var or provider literal: Ollama is reached through the
existing openai-provider branch by setting EMBEDDING_BASE_URL,
EMBEDDING_API_KEY, and EMBEDDING_MODEL.

Closes #18
2026-05-07 20:39:42 +00:00
Dominik Seemann 8442a58f9d docs(i18n): translate readme tagline and rename chinese assets
Replace the chinese tagline on README.md and README-EN.md with the
existing english subtitle (collapsing the duplicate stack), and switch
the package.json and backend/pyproject.toml description fields to
english so the project's metadata surface no longer surprises
non-chinese readers.

Rename nine chinese-named static image files under static/image/ to
ASCII slugs (six screenshots, two video covers, the QQ-group image)
via git mv so rename history is preserved, and update every <img src>
in README.md, README-EN.md, and README-ZH.md to the new paths. The
chinese body text of README-ZH.md is preserved by design.

A ripgrep scan for chinese characters in README.md and README-EN.md
(excluding the language-switcher line) now returns zero matches,
satisfying the ticket's acceptance criteria.

Closes #12
2026-05-07 19:39:30 +00:00
Dominik Seemann 9a77b5921d docs: update CLAUDE.md and resolve README merge conflicts (Step 1)
Bring repo docs in line with the Graphiti+Neo4j migration and prepare
the codebase for Spec-Driven Development.

CLAUDE.md:
- Promote Neo4j + Graphiti to primary memory/graph layer; mark Zep
  Cloud as deprecated / compat-only.
- Document the full env-var surface: NEO4J_*, EMBEDDING_MODEL, optional
  LLM_BOOST_* block.
- Codify must-respect implementation rules (Task model for long ops,
  reasoning-output stripping, simulation IPC, subprocess cleanup,
  startup recovery, per-project group_id isolation, chat prefix
  injection).
- Note i18n (vue-i18n + /locales/) and Docker prerequisite for dev.

README.md / README-EN.md / README-ZH.md:
- Resolve unresolved merge-conflict markers in README.md left over from
  the feat/graphiti-neo4j-migration merge (file was broken Markdown).
- Lead with Docker as the recommended deployment path; keep source
  install as a documented alternative.
- Replace Zep env vars with NEO4J_URI / NEO4J_USER / NEO4J_PASSWORD /
  EMBEDDING_MODEL across all three READMEs.
- Add optional LLM_BOOST_* block with omit-if-unused note.
- Fix language-switcher links between the three READMEs.

.claude/onboarding/step1_codebase/:
- Document repo analysis, CLAUDE.md conventions decisions, and README
  resolution choices.
2026-05-06 17:38:44 +02:00
stg 62648289d1 Merge remote-tracking branch 'abhiyadav2345/feat/graphiti-neo4j-migration' 2026-05-05 15:03:47 +02:00
666ghj fa0f6519b1 docs: rename README-EN.md to README.md as default English documentation 2026-04-02 16:52:29 +08:00
666ghj 0e9420e0f8 docs: rename README.md to README-ZH.md for Chinese documentation 2026-04-02 16:52:29 +08:00
Abhishek Yadav abb7e790bb docs: update README for Graphiti + Neo4j migration
- Replace ZEP_API_KEY with NEO4J_URI/USER/PASSWORD in env var section
- Add Neo4j as a prerequisite with install instructions for macOS/Linux/Windows
- Add EMBEDDING_MODEL note for Gemini API users
- Add migration note: no third-party account needed, free and no rate limits
- Update both Chinese (README.md) and English (README-EN.md) docs

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-22 01:33:12 +05:30
666ghj 1536a79334 fix(readme): update Discord link to valid invite URL 2026-03-20 10:50:39 +08:00
666ghj a1ff79c0ef Update README 2026-03-05 23:22:26 +08:00
666ghj 85b03d4f0f Update README 2026-02-27 17:29:41 +08:00
666ghj c6cea12774 docs(readme): add live demo section with link to online prediction simulation for both English and Chinese README files 2026-02-27 17:27:49 +08:00
666ghj d30a0a23ef Update README 2026-02-25 16:16:24 +08:00
666ghj 040c745c86 feat(readme): add Trendshift badge to README files for repository visibility 2026-02-22 23:07:28 +08:00
666ghj 93e1a592df feat(README): add Docker badge to README files for enhanced visibility of Docker support 2026-01-22 19:03:44 +08:00
666ghj 0efd9352a0 feat(docker): add Docker support with Dockerfile, docker-compose.yml, and .dockerignore; update README for Docker deployment instructions 2026-01-22 14:35:41 +08:00
666ghj 94633e1330 refactor(README): update demo video section titles and clarify LLM API configuration instructions 2026-01-20 18:02:33 +08:00
666ghj b0e065ed20 refactor(README): update demo video section to include new financial and political prediction examples 2026-01-20 11:25:24 +08:00
666ghj 824e81e1a4 refactor(README): update demo video section titles for clarity and consistency 2026-01-20 11:21:45 +08:00
666ghj fa19242477 fix(README): update image asset for Dream of the Red Chamber demo video section 2026-01-20 11:18:35 +08:00
666ghj be2acf663d feat(README): add demo video sections for Wuhan University Public Opinion and Dream of the Red Chamber simulations; include new image asset 2026-01-20 11:17:11 +08:00
666ghj 57e72250a9 chore(README): remove note about Windows compatibility from prerequisites section. 2026-01-18 22:37:02 +08:00
BaiFu 9668ab487b
Update README.md 2026-01-09 18:18:09 +08:00
666ghj 11d39286f1 Update README 2026-01-09 18:09:01 +08:00
666ghj 08b2e78571 Update README 2026-01-09 17:46:36 +08:00
666ghj 416eb6c105 Update README 2026-01-09 17:42:04 +08:00
666ghj cf4b358ded docs(README): update Python version requirements and enhance contact section
- Changed Python version specification to indicate compatibility with versions ≥3.11 and ≤3.12.
- Renamed "Contact Us" section to "Join the Conversation" for improved engagement.
- Added a centered image of the QQ group to the contact section for better visibility.
2026-01-09 17:13:18 +08:00
666ghj b4fe7f2f03 feat(HistoryDatabase): add project detail modal for enhanced user interaction
- Implemented a modal to display detailed information about selected projects, including simulation requirements and associated files.
- Added navigation buttons within the modal for quick access to project, simulation, and report pages.
- Enhanced user experience by allowing users to view project details without leaving the main interface.
2026-01-09 15:41:35 +08:00
666ghj 9d5fad8854 Update README. 2026-01-07 16:55:59 +08:00
666ghj 8b80603325 Update README. 2025-12-30 22:40:04 +08:00
666ghj fa7ab33bc9 Add Ask DeepWiki badge to README files for enhanced visibility and user engagement. 2025-12-30 22:38:27 +08:00
666ghj abf2ba68af Update README 2025-12-24 11:05:01 +08:00
666ghj 4d242365e3 Add Shanda Group logo and acknowledgment in README files for strategic support 2025-12-24 11:03:27 +08:00
BaiFu 84f9fb73c5
Update video link description in README.md 2025-12-23 16:58:25 +08:00
BaiFu 9b231d32c9
Enhance README with project statistics section
Added project statistics section with star history chart.
2025-12-23 16:33:00 +08:00
666ghj 84113ce2f1 Update README files to open demo video link in a new tab for improved user experience. 2025-12-23 16:16:26 +08:00
666ghj e3b6a79b09 Add note about MiroFish's development environment in README files for clarity on Windows compatibility. 2025-12-23 10:58:08 +08:00
666ghj 29a95b0ae6 Add GitHub badges and version information to README files for better visibility and project tracking. 2025-12-22 19:36:08 +08:00
666ghj b669184d85 Update README files to replace demo video link with a direct URL for improved accessibility. 2025-12-22 19:25:11 +08:00
666ghj 61f1ee7ad7 Update README files to include demo video links and enhance content presentation, along with adding a new demo video image. 2025-12-22 18:48:30 +08:00
666ghj fb9a3e50f8 Update README. 2025-12-22 16:00:02 +08:00
666ghj e749931475 Enhance README files by correcting phrasing in the vision section and adding a detailed workflow section outlining the steps for graph building, environment setup, simulation, report generation, and deep interaction. 2025-12-19 16:33:19 +08:00
666ghj 593f7050f2 Update README files to clarify the description of the Python package manager by removing the reference to pip as an alternative. 2025-12-19 16:03:44 +08:00
666ghj f342eaf697 Update README files to enhance vision section and add acknowledgments for OASIS framework 2025-12-19 15:53:53 +08:00
666ghj fb3b41253f Update README 2025-12-19 14:22:11 +08:00
666ghj 4ddbb9dfd4 Update README files to remove strong tag and add line break for improved formatting 2025-12-19 14:18:10 +08:00
666ghj d787ebc649 Add English README file for MiroFish project
- Introduced a new README-EN.md file to provide English documentation for the MiroFish project.
- Included an overview of the project, vision, demo videos, quick start guide, and environment variable configuration.
- Updated the existing README.md to link to the new English documentation.
2025-12-19 14:16:42 +08:00
BaiFu 43d80c5ae1
Increase logo width in README 2025-12-19 14:01:15 +08:00