svarupa

repoadaptive-rag
click a box for its passport; double-click it, or its ›, to open it in place (keyboard: Enter, Shift+Enter); shift-click two boxes for a path; a legend swatch mutes a kind
Guided views 0 / 6Explore this system
  1. 01services +45 boxes
  2. 02app +23 boxes
  3. 03OpenAI API2 boxes
  4. 04Milvus2 boxes
  5. 05Redis2 boxes
  6. 06SQLite2 boxes

Architecture

9 modules in 2 groups

in a cycleexternalreads/writes app/api/conversations.py:13reads/writes12 imports app/api/admin.py:11 app/api/admin.py:40 app/api/chat.py:29 app/api/chat.py:185 app/eval/offline.py:32 app/eval/offline.py:38calls app/services/ollama_llm.py:31callsreads/writes app/services/milvus_store.py:14reads/writes app/services/cache.py:18reads/writes10 imports app/graph/nodes.py:17 app/ingestion/run_ingest.py:20 app/services/cache.py:20 app/services/evaluation.py:23 app/services/milvus_store.py:16 app/services/ollama_llm.py:18app +2 app/__init__.py:1 app/api/admin.py:1 app/api/chat.py:1 app/api/conversations.py:1 app/config.py:1 app/main.py:1app +23 modulesSRC 6›services +4 app/services/cache.py:1 app/services/citations.py:1 app/services/evaluation.py:1 app/services/milvus_store.py:1 app/services/ollama_llm.py:1 app/services/__init__.pyservices +45 modulesSRC 6›SQLite app/api/conversations.py:13SQLitevia sqlite3SRC 1OpenAI API app/services/ollama_llm.py:31OpenAI APIvia langchain_openaiSRC 1Milvus app/services/milvus_store.py:14Milvusvia pymilvusSRC 1Redis app/services/cache.py:18Redisvia redisSRC 1
cloud 1 database 3 group 2solid arrows are imports (count on hover); dashed arrows carry their verb (some only in the passport)every box and arrow cites a source line; click one
Entry points
Data stores
  • … and 2 more
External APIs
Unresolved
  • python calls: 446 unresolved · e.g. Path(__file__).resolve, client.trace, ingestor.ingest_skill
  • python imports: 6 unresolved · e.g. huggingface_hub, pytest, transformers
  • python references: 3 unresolved · e.g. huggingface_hub, transformers

← Architecture

app +2 internals

3 modules, 1 external

level 1in a cycleexternal1 import app/main.py:193 imports app/api/admin.py:10 app/api/chat.py:28 app/api/conversations.py:26reads/writes app/api/conversations.py:13reads/writes2 imports app/eval/offline.py:30 app/eval/offline.py:31eval app/eval/__init__.py:1 app/eval/offline.py:1eval2 filesSRC 2›app app/__init__.py:1 app/config.py:1 app/main.py:1app3 filesSRC 3›api app/api/admin.py:1 app/api/chat.py:1 app/api/conversations.py:1 app/api/conversations.py:97 app/api/models.py:1 app/api/skills.py:1apiFastAPI · 6 routesSRC 6›SQLite app/api/conversations.py:13SQLitevia sqlite3SRC 1
backend 1 database 1 module 2solid arrows are imports (count on hover); dashed arrows carry their verbevery box and arrow cites a source line; click one

← app +2 internals

app component flow

3 components

level 1level 23 uses app/main.py:20 app/main.py:49 app/main.py:86__init__ app/__init__.py:1__init__SRC 1main app/main.py:1mainSRC 1›config app/config.py:1configSRC 1›
component 3solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app +2 internals

app/api component flow

6 components

level 1level 22 uses app/api/admin.py:9 app/api/admin.py:651 use app/api/chat.py:276 uses app/api/conversations.py:19 app/api/conversations.py:87 app/api/conversations.py:122 app/api/conversations.py:126 app/api/conversations.py:146 app/api/conversations.py:1542 uses app/api/skills.py:7 app/api/skills.py:16__init__ app/api/__init__.py__init__SRC 1admin app/api/admin.py:1adminSRC 1›chat app/api/chat.py:1chatSRC 1›conversations app/api/conversations.py:1conversationsSRC 1›skills app/api/skills.py:1skillsSRC 1models app/api/models.py:1modelsSRC 1›
component 6solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/api component flow

admin code

2 functions

level 1level 2calls app/api/admin.py:53 app/api/admin.py:57 app/api/admin.py:59callsingest app/api/admin.py:26ingestSRC 1_merge app/api/admin.py:16_mergeSRC 1
function 2solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/api component flow

chat code

6 functions

level 1level 2level 3calls app/api/chat.py:98callscalls app/api/chat.py:95callscalls app/api/chat.py:179callscalls app/api/chat.py:177callschat app/api/chat.py:85chatSRC 1health app/api/chat.py:70healthSRC 1_resolve_skill app/api/chat.py:38_resolve_skillSRC 1event_stream app/api/chat.py:121event_streamSRC 1_within_rate_limit app/api/chat.py:56_within_rate_limitSRC 1_schedule_scoring app/api/chat.py:182_schedule_scoringSRC 1
function 6solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/api component flow

conversations code

7 functions

level 1level 2level 3calls app/api/conversations.py:91callscalls app/api/conversations.py:84callscalls app/api/conversations.py:158callscalls app/api/conversations.py:142callscalls app/api/conversations.py:119callscalls app/api/conversations.py:105calls_distinct_thread_ids app/api/conversations.py:56_distinct_thread_idsSRC 1get_conversation app/api/conversations.py:130get_conversationSRC 1list_conversations app/api/conversations.py:98list_conversationsSRC 1_summary app/api/conversations.py:76_summarySRC 1_bucket_for app/api/conversations.py:66_bucket_forSRC 1_first_user_question app/api/conversations.py:48_first_user_questionSRC 1_split_thread app/api/conversations.py:42_split_threadSRC 1
function 7solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/api component flow

models code

8 classes

level 1ChatRequest app/api/models.py:8ChatRequestSRC 1ConversationBucket app/api/models.py:45ConversationBucketSRC 1ConversationDetail app/api/models.py:59ConversationDetailSRC 1ConversationListResponse app/api/models.py:50ConversationListResponseSRC 1ConversationMessage app/api/models.py:54ConversationMessageSRC 1ConversationSummary app/api/models.py:36ConversationSummarySRC 1IngestResponse app/api/models.py:71IngestResponseSRC 1SkillInfo app/api/models.py:30SkillInfoSRC 1
class 8every box and arrow cites a source line; click one

← app component flow

config code

1 class and 1 function

level 1level 2calls app/config.py:117callsget_settings app/config.py:115get_settingsSRC 1Settings app/config.py:11SettingsSRC 1
class 1 function 1solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app +2 internals

app/eval component flow

2 components

level 1__init__ app/eval/__init__.py:1__init__SRC 1offline app/eval/offline.py:1offlineSRC 1›
component 2every box and arrow cites a source line; click one

← app/eval component flow

offline code

6 functions

level 1level 2level 3calls app/eval/offline.py:205callscalls app/eval/offline.py:161callscalls app/eval/offline.py:147callscalls app/eval/offline.py:197calls app/eval/offline.py:169callsmain app/eval/offline.py:200mainSRC 1run app/eval/offline.py:143runSRC 1_ensure_dataset app/eval/offline.py:94_ensure_datasetSRC 1_load_golden app/eval/offline.py:47_load_goldenSRC 1_print_summary app/eval/offline.py:118_print_summarySRC 1_run_graph app/eval/offline.py:65_run_graphSRC 1
function 6solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← services +4 internals

app/graph component flow

5 components

level 1level 2level 32 uses app/graph/build.py:12 app/graph/build.py:551 use app/graph/build.py:131 use app/graph/nodes.py:181 use app/graph/nodes.py:181 use app/graph/nodes.py:20build app/graph/build.py:1buildSRC 1›nodes app/graph/nodes.py:1nodesSRC 1›__init__ app/graph/__init__.py__init__SRC 1prompts app/graph/prompts.py:1promptsSRC 1›state app/graph/state.py:1stateSRC 1›
component 5solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/graph component flow

build code

3 functions

level 1level 2calls app/graph/build.py:58 app/graph/build.py:59 app/graph/build.py:60 app/graph/build.py:61 app/graph/build.py:62 app/graph/build.py:63 app/graph/build.py:64 app/graph/build.py:65 app/graph/build.py:66 app/graph/build.py:67 app/graph/build.py:68 app/graph/build.py:69callswrapper app/graph/build.py:30wrapperSRC 1build_graph app/graph/build.py:47build_graphSRC 1_timed app/graph/build.py:22_timedSRC 1
function 3solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/graph component flow

nodes code

1 class and 3 functions

level 1RagNodes app/graph/nodes.py:36RagNodesSRC 1_status app/graph/nodes.py:28_statusSRC 1route_after_grade app/graph/nodes.py:278route_after_gradeSRC 1route_reflect app/graph/nodes.py:303route_reflectSRC 1
class 1 function 3every box and arrow cites a source line; click one

← app/graph component flow

prompts code

6 functions

level 1answer_quality_user app/graph/prompts.py:100answer_quality_userSRC 1generation_user app/graph/prompts.py:61generation_userSRC 1groundedness_user app/graph/prompts.py:90groundedness_userSRC 1parse_yes_no app/graph/prompts.py:18parse_yes_noSRC 1relevance_user app/graph/prompts.py:47relevance_userSRC 1rewrite_user app/graph/prompts.py:111rewrite_userSRC 1
function 6every box and arrow cites a source line; click one

← app/graph component flow

state code

2 classes

level 1Document app/graph/state.py:11DocumentSRC 1GraphState app/graph/state.py:18GraphStateSRC 1
class 2every box and arrow cites a source line; click one

← services +4 internals

app/ingestion component flow

3 components

level 1level 25 uses app/ingestion/run_ingest.py:21 app/ingestion/run_ingest.py:46 app/ingestion/run_ingest.py:48 app/ingestion/run_ingest.py:60 app/ingestion/run_ingest.py:70__init__ app/ingestion/__init__.py__init__SRC 1run_ingest app/ingestion/run_ingest.py:1run_ingestSRC 1›crawler app/ingestion/crawler.py:1crawlerSRC 1›
component 3solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/ingestion component flow

crawler code

2 classes and 3 functions

level 1IngestReport app/ingestion/crawler.py:33IngestReportSRC 1Ingestor app/ingestion/crawler.py:73IngestorSRC 1_host app/ingestion/crawler.py:27_hostSRC 1chunk_text app/ingestion/crawler.py:52chunk_textSRC 1load_topics app/ingestion/crawler.py:68load_topicsSRC 1
class 2 function 3every box and arrow cites a source line; click one

← app/ingestion component flow

run_ingest code

2 functions

level 1level 2calls app/ingestion/run_ingest.py:60 app/ingestion/run_ingest.py:65 app/ingestion/run_ingest.py:70 app/ingestion/run_ingest.py:73callsmain app/ingestion/run_ingest.py:40mainSRC 1_merge app/ingestion/run_ingest.py:31_mergeSRC 1
function 2solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app component flow

main code

1 class and 3 functions

level 1level 2level 3calls app/main.py:74callscalls app/main.py:89callscreate_app app/main.py:95create_appSRC 1lifespan app/main.py:85lifespanSRC 1build_runtime app/main.py:42build_runtimeSRC 1Runtime app/main.py:32RuntimeSRC 1
class 1 function 3solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← Architecture

services +4 internals

5 modules, 3 external

level 1level 2level 3external8 imports app/graph/build.py:14 app/graph/build.py:15 app/graph/build.py:16 app/graph/nodes.py:19 app/graph/nodes.py:21 app/graph/nodes.py:222 imports app/graph/build.py:17 app/graph/nodes.py:258 imports app/ingestion/crawler.py:18 app/ingestion/crawler.py:19 app/ingestion/crawler.py:20 app/ingestion/crawler.py:21 app/ingestion/run_ingest.py:22 app/ingestion/run_ingest.py:232 imports app/ingestion/crawler.py:22 app/ingestion/run_ingest.py:25calls app/services/ollama_llm.py:31callsreads/writes app/services/milvus_store.py:14reads/writes app/services/cache.py:18reads/writes1 import scripts/export_graph.py:231 import scripts/export_graph.py:24ingestion app/ingestion/crawler.py:1 app/ingestion/run_ingest.py:1 app/ingestion/__init__.pyingestion3 filesSRC 3›scripts scripts/download_models.py:1 scripts/export_graph.py:1scripts2 filesSRC 2›graph app/graph/build.py:1 app/graph/nodes.py:1 app/graph/prompts.py:1 app/graph/state.py:1 app/graph/__init__.pygraph5 filesSRC 5›services app/services/cache.py:1 app/services/citations.py:1 app/services/evaluation.py:1 app/services/milvus_store.py:1 app/services/ollama_llm.py:1 app/services/__init__.pyservices9 filesSRC 6›skills app/skills/__init__.py:1 app/skills/registry.py:1skills2 filesSRC 2›OpenAI API app/services/ollama_llm.py:31OpenAI APIvia langchain_openaiSRC 1Milvus app/services/milvus_store.py:14Milvusvia pymilvusSRC 1Redis app/services/cache.py:18Redisvia redisSRC 1
cloud 1 database 2 module 5solid arrows are imports (count on hover); dashed arrows carry their verb (some only in the passport)every box and arrow cites a source line; click one

← services +4 internals

app/services component flow

9 components

level 1level 22 uses app/services/evaluation.py:24 app/services/evaluation.py:742 uses app/services/evaluation.py:204 app/services/evaluation.py:2121 use app/services/websearch.py:26__init__ app/services/__init__.py__init__SRC 1evaluation app/services/evaluation.py:1evaluationSRC 1›citations app/services/citations.py:1citationsSRC 1›websearch app/services/websearch.py:1websearchSRC 1›milvus_store app/services/milvus_store.py:1milvus_storeSRC 1›reranker app/services/reranker.py:1rerankerSRC 1›ollama_llm app/services/ollama_llm.py:1ollama_llmSRC 1›tracing app/services/tracing.py:1tracingSRC 1›cache app/services/cache.py:1cacheSRC 1›
component 9solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/services component flow

cache code

1 class and 2 functions

level 1CacheService app/services/cache.py:31CacheServiceSRC 1_hash app/services/cache.py:27_hashSRC 1_key app/services/cache.py:23_keySRC 1
class 1 function 2every box and arrow cites a source line; click one

← app/services component flow

citations code

3 functions

level 1level 2level 3calls app/services/citations.py:39 app/services/citations.py:44callscalls app/services/citations.py:61callscitation_link app/services/citations.py:49citation_linkSRC 1build_text_fragment app/services/citations.py:23build_text_fragmentSRC 1_encode app/services/citations.py:17_encodeSRC 1
function 3solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/services component flow

evaluation code

1 class and 7 functions

level 1level 2level 3calls app/services/evaluation.py:74callscalls app/services/evaluation.py:206callscalls app/services/evaluation.py:214callscalls app/services/evaluation.py:213callscalls app/services/evaluation.py:118callscalls app/services/evaluation.py:151callscalls app/services/evaluation.py:179callsevaluate_and_score app/services/evaluation.py:194evaluate_and_scoreSRC 1offline_metrics app/services/evaluation.py:129offline_metricsSRC 1build_judge app/services/evaluation.py:36build_judgeSRC 1live_metrics app/services/evaluation.py:112live_metricsSRC 1score_test_case app/services/evaluation.py:168score_test_caseSRC 1_LangchainJudge app/services/evaluation.py:40_LangchainJudgeSRC 1_geval_metrics app/services/evaluation.py:77_geval_metricsSRC 1_metric_name app/services/evaluation.py:154_metric_nameSRC 1
class 1 function 7solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/services component flow

milvus_store code

1 class and 4 functions

level 1level 2calls app/services/milvus_store.py:65callsMilvusStore app/services/milvus_store.py:70MilvusStoreSRC 1source_filter app/services/milvus_store.py:56source_filterSRC 1chunk_id app/services/milvus_store.py:19chunk_idSRC 1content_hash app/services/milvus_store.py:25content_hashSRC 1_quote_list app/services/milvus_store.py:51_quote_listSRC 1
class 1 function 4solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/services component flow

ollama_llm code

3 functions

level 1build_chat_llm app/services/ollama_llm.py:21build_chat_llmSRC 1build_embeddings app/services/ollama_llm.py:76build_embeddingsSRC 1build_eval_llm app/services/ollama_llm.py:49build_eval_llmSRC 1
function 3every box and arrow cites a source line; click one

← app/services component flow

reranker code

2 classes

level 1RerankCandidate app/services/reranker.py:16RerankCandidateSRC 1Reranker app/services/reranker.py:23RerankerSRC 1
class 2every box and arrow cites a source line; click one

← app/services component flow

tracing code

4 functions

level 1level 2level 3calls app/services/tracing.py:66callscalls app/services/tracing.py:84callscalls app/services/tracing.py:28callsattach_citations app/services/tracing.py:47attach_citationsSRC 1make_chat_handler app/services/tracing.py:22make_chat_handlerSRC 1langfuse_client app/services/tracing.py:82langfuse_clientSRC 1tracing_enabled app/services/tracing.py:17tracing_enabledSRC 1
function 4solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/services component flow

websearch code

2 classes

level 1WebDocument app/services/websearch.py:32WebDocumentSRC 1WebSearchService app/services/websearch.py:38WebSearchServiceSRC 1
class 2every box and arrow cites a source line; click one

← services +4 internals

app/skills component flow

2 components

level 1level 21 use app/skills/__init__.py:3__init__ app/skills/__init__.py:1__init__SRC 1registry app/skills/registry.py:1registrySRC 1›
component 2solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/skills component flow

registry code

2 classes and 2 functions

level 1Skill app/skills/registry.py:25SkillSRC 1SkillRegistry app/skills/registry.py:65SkillRegistrySRC 1_resolve_skills_dir app/skills/registry.py:57_resolve_skills_dirSRC 1parse_frontmatter app/skills/registry.py:39parse_frontmatterSRC 1
class 2 function 2every box and arrow cites a source line; click one

← services +4 internals

scripts component flow

2 components

level 1download_models scripts/download_models.py:1download_modelsSRC 1export_graph scripts/export_graph.py:1export_graphSRC 1
component 2every box and arrow cites a source line; click one

← app +2 internals

app component flow

3 components

level 1in a cycleexternal1 import app/main.py:193 imports app/api/admin.py:10 app/api/chat.py:28 app/api/conversations.py:26reads/writes app/api/conversations.py:13reads/writes2 imports app/eval/offline.py:30 app/eval/offline.py:31eval app/eval/__init__.py:1 app/eval/offline.py:1eval2 filesSRC 2›api app/api/admin.py:1 app/api/chat.py:1 app/api/conversations.py:1 app/api/conversations.py:97 app/api/models.py:1 app/api/skills.py:1apiFastAPI · 6 routesSRC 6›SQLite app/api/conversations.py:13SQLitevia sqlite3SRC 1app app/__init__.py:1 app/config.py:1 app/main.py:1app×level 1level 23 uses app/main.py:20 app/main.py:49 app/main.py:86__init__ app/__init__.py:1__init__SRC 1main app/main.py:1mainSRC 1›config app/config.py:1configSRC 1›
component 3solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app +2 internals

app/api component flow

6 components

level 1in a cycleexternal1 import app/main.py:193 imports app/api/admin.py:10 app/api/chat.py:28 app/api/conversations.py:26reads/writes app/api/conversations.py:13reads/writes2 imports app/eval/offline.py:30 app/eval/offline.py:31eval app/eval/__init__.py:1 app/eval/offline.py:1eval2 filesSRC 2›app app/__init__.py:1 app/config.py:1 app/main.py:1app3 filesSRC 3›SQLite app/api/conversations.py:13SQLitevia sqlite3SRC 1api app/api/admin.py:1 app/api/chat.py:1 app/api/conversations.py:1 app/api/conversations.py:97 app/api/models.py:1 app/api/skills.py:1api×level 1level 22 uses app/api/admin.py:9 app/api/admin.py:651 use app/api/chat.py:276 uses app/api/conversations.py:19 app/api/conversations.py:87 app/api/conversations.py:122 app/api/conversations.py:126 app/api/conversations.py:146 app/api/conversations.py:1542 uses app/api/skills.py:7 app/api/skills.py:16__init__ app/api/__init__.py__init__SRC 1admin app/api/admin.py:1adminSRC 1›chat app/api/chat.py:1chatSRC 1›conversations app/api/conversations.py:1conversationsSRC 1›skills app/api/skills.py:1skillsSRC 1models app/api/models.py:1modelsSRC 1›
component 6solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app +2 internals

app/eval component flow

2 components

level 1in a cycleexternal1 import app/main.py:193 imports app/api/admin.py:10 app/api/chat.py:28 app/api/conversations.py:26reads/writes app/api/conversations.py:13reads/writes2 imports app/eval/offline.py:30 app/eval/offline.py:31app app/__init__.py:1 app/config.py:1 app/main.py:1app3 filesSRC 3›api app/api/admin.py:1 app/api/chat.py:1 app/api/conversations.py:1 app/api/conversations.py:97 app/api/models.py:1 app/api/skills.py:1apiFastAPI · 6 routesSRC 6›SQLite app/api/conversations.py:13SQLitevia sqlite3SRC 1eval app/eval/__init__.py:1 app/eval/offline.py:1eval×level 1__init__ app/eval/__init__.py:1__init__SRC 1offline app/eval/offline.py:1offlineSRC 1›
component 2every box and arrow cites a source line; click one

← app component flow

config code

1 class and 1 function

level 1level 23 uses app/main.py:20 app/main.py:49 app/main.py:86__init__ app/__init__.py:1__init__SRC 1main app/main.py:1mainSRC 1›config app/config.py:1config×level 1level 2calls app/config.py:117callsget_settings app/config.py:115get_settingsSRC 1Settings app/config.py:11SettingsSRC 1
class 1 function 1solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app component flow

main code

1 class and 3 functions

level 1level 23 uses app/main.py:20 app/main.py:49 app/main.py:86__init__ app/__init__.py:1__init__SRC 1config app/config.py:1configSRC 1›main app/main.py:1main×level 1level 2level 3calls app/main.py:74callscalls app/main.py:89callscreate_app app/main.py:95create_appSRC 1lifespan app/main.py:85lifespanSRC 1build_runtime app/main.py:42build_runtimeSRC 1Runtime app/main.py:32RuntimeSRC 1
class 1 function 3solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/api component flow

admin code

2 functions

level 1level 22 uses app/api/admin.py:9 app/api/admin.py:651 use app/api/chat.py:276 uses app/api/conversations.py:19 app/api/conversations.py:87 app/api/conversations.py:122 app/api/conversations.py:126 app/api/conversations.py:146 app/api/conversations.py:1542 uses app/api/skills.py:7 app/api/skills.py:16__init__ app/api/__init__.py__init__SRC 1chat app/api/chat.py:1chatSRC 1›conversations app/api/conversations.py:1conversationsSRC 1›skills app/api/skills.py:1skillsSRC 1models app/api/models.py:1modelsSRC 1›admin app/api/admin.py:1admin×level 1level 2calls app/api/admin.py:53 app/api/admin.py:57 app/api/admin.py:59callsingest app/api/admin.py:26ingestSRC 1_merge app/api/admin.py:16_mergeSRC 1
function 2solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/api component flow

chat code

6 functions

level 1level 22 uses app/api/admin.py:9 app/api/admin.py:651 use app/api/chat.py:276 uses app/api/conversations.py:19 app/api/conversations.py:87 app/api/conversations.py:122 app/api/conversations.py:126 app/api/conversations.py:146 app/api/conversations.py:1542 uses app/api/skills.py:7 app/api/skills.py:16__init__ app/api/__init__.py__init__SRC 1admin app/api/admin.py:1adminSRC 1›conversations app/api/conversations.py:1conversationsSRC 1›skills app/api/skills.py:1skillsSRC 1models app/api/models.py:1modelsSRC 1›chat app/api/chat.py:1chat×level 1level 2level 3calls app/api/chat.py:98callscalls app/api/chat.py:95callscalls app/api/chat.py:179callscalls app/api/chat.py:177callschat app/api/chat.py:85chatSRC 1health app/api/chat.py:70healthSRC 1_resolve_skill app/api/chat.py:38_resolve_skillSRC 1event_stream app/api/chat.py:121event_streamSRC 1_within_rate_limit app/api/chat.py:56_within_rate_limitSRC 1_schedule_scoring app/api/chat.py:182_schedule_scoringSRC 1
function 6solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/api component flow

conversations code

7 functions

level 1level 22 uses app/api/admin.py:9 app/api/admin.py:651 use app/api/chat.py:276 uses app/api/conversations.py:19 app/api/conversations.py:87 app/api/conversations.py:122 app/api/conversations.py:126 app/api/conversations.py:146 app/api/conversations.py:1542 uses app/api/skills.py:7 app/api/skills.py:16__init__ app/api/__init__.py__init__SRC 1admin app/api/admin.py:1adminSRC 1›chat app/api/chat.py:1chatSRC 1›skills app/api/skills.py:1skillsSRC 1models app/api/models.py:1modelsSRC 1›conversations app/api/conversations.py:1conversations×level 1level 2level 3calls app/api/conversations.py:91callscalls app/api/conversations.py:84callscalls app/api/conversations.py:158callscalls app/api/conversations.py:142callscalls app/api/conversations.py:119callscalls app/api/conversations.py:105calls_distinct_thread_ids app/api/conversations.py:56_distinct_thread_idsSRC 1get_conversation app/api/conversations.py:130get_conversationSRC 1list_conversations app/api/conversations.py:98list_conversationsSRC 1_summary app/api/conversations.py:76_summarySRC 1_bucket_for app/api/conversations.py:66_bucket_forSRC 1_first_user_question app/api/conversations.py:48_first_user_questionSRC 1_split_thread app/api/conversations.py:42_split_threadSRC 1
function 7solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/eval component flow

offline code

6 functions

level 1__init__ app/eval/__init__.py:1__init__SRC 1offline app/eval/offline.py:1offline×level 1level 2level 3calls app/eval/offline.py:205callscalls app/eval/offline.py:161callscalls app/eval/offline.py:147callscalls app/eval/offline.py:197calls app/eval/offline.py:169callsmain app/eval/offline.py:200mainSRC 1run app/eval/offline.py:143runSRC 1_ensure_dataset app/eval/offline.py:94_ensure_datasetSRC 1_load_golden app/eval/offline.py:47_load_goldenSRC 1_print_summary app/eval/offline.py:118_print_summarySRC 1_run_graph app/eval/offline.py:65_run_graphSRC 1
function 6solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/graph component flow

build code

3 functions

level 1level 2level 32 uses app/graph/build.py:12 app/graph/build.py:551 use app/graph/build.py:131 use app/graph/nodes.py:181 use app/graph/nodes.py:181 use app/graph/nodes.py:20nodes app/graph/nodes.py:1nodesSRC 1›__init__ app/graph/__init__.py__init__SRC 1prompts app/graph/prompts.py:1promptsSRC 1›state app/graph/state.py:1stateSRC 1›build app/graph/build.py:1build×level 1level 2calls app/graph/build.py:58 app/graph/build.py:59 app/graph/build.py:60 app/graph/build.py:61 app/graph/build.py:62 app/graph/build.py:63 app/graph/build.py:64 app/graph/build.py:65 app/graph/build.py:66 app/graph/build.py:67 app/graph/build.py:68 app/graph/build.py:69callswrapper app/graph/build.py:30wrapperSRC 1build_graph app/graph/build.py:47build_graphSRC 1_timed app/graph/build.py:22_timedSRC 1
function 3solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/graph component flow

nodes code

1 class and 3 functions

level 1level 2level 32 uses app/graph/build.py:12 app/graph/build.py:551 use app/graph/build.py:131 use app/graph/nodes.py:181 use app/graph/nodes.py:181 use app/graph/nodes.py:20build app/graph/build.py:1buildSRC 1›__init__ app/graph/__init__.py__init__SRC 1prompts app/graph/prompts.py:1promptsSRC 1›state app/graph/state.py:1stateSRC 1›nodes app/graph/nodes.py:1nodes×level 1RagNodes app/graph/nodes.py:36RagNodesSRC 1_status app/graph/nodes.py:28_statusSRC 1route_after_grade app/graph/nodes.py:278route_after_gradeSRC 1route_reflect app/graph/nodes.py:303route_reflectSRC 1
class 1 function 3every box and arrow cites a source line; click one

← app/graph component flow

prompts code

6 functions

level 1level 2level 32 uses app/graph/build.py:12 app/graph/build.py:551 use app/graph/build.py:131 use app/graph/nodes.py:181 use app/graph/nodes.py:181 use app/graph/nodes.py:20build app/graph/build.py:1buildSRC 1›nodes app/graph/nodes.py:1nodesSRC 1›__init__ app/graph/__init__.py__init__SRC 1state app/graph/state.py:1stateSRC 1›prompts app/graph/prompts.py:1prompts×level 1answer_quality_user app/graph/prompts.py:100answer_quality_userSRC 1generation_user app/graph/prompts.py:61generation_userSRC 1groundedness_user app/graph/prompts.py:90groundedness_userSRC 1parse_yes_no app/graph/prompts.py:18parse_yes_noSRC 1relevance_user app/graph/prompts.py:47relevance_userSRC 1rewrite_user app/graph/prompts.py:111rewrite_userSRC 1
function 6every box and arrow cites a source line; click one

← app/graph component flow

state code

2 classes

level 1level 2level 32 uses app/graph/build.py:12 app/graph/build.py:551 use app/graph/build.py:131 use app/graph/nodes.py:181 use app/graph/nodes.py:181 use app/graph/nodes.py:20build app/graph/build.py:1buildSRC 1›nodes app/graph/nodes.py:1nodesSRC 1›__init__ app/graph/__init__.py__init__SRC 1prompts app/graph/prompts.py:1promptsSRC 1›state app/graph/state.py:1state×level 1Document app/graph/state.py:11DocumentSRC 1GraphState app/graph/state.py:18GraphStateSRC 1
class 2every box and arrow cites a source line; click one

← app/ingestion component flow

crawler code

2 classes and 3 functions

level 1level 25 uses app/ingestion/run_ingest.py:21 app/ingestion/run_ingest.py:46 app/ingestion/run_ingest.py:48 app/ingestion/run_ingest.py:60 app/ingestion/run_ingest.py:70__init__ app/ingestion/__init__.py__init__SRC 1run_ingest app/ingestion/run_ingest.py:1run_ingestSRC 1›crawler app/ingestion/crawler.py:1crawler×level 1IngestReport app/ingestion/crawler.py:33IngestReportSRC 1Ingestor app/ingestion/crawler.py:73IngestorSRC 1_host app/ingestion/crawler.py:27_hostSRC 1chunk_text app/ingestion/crawler.py:52chunk_textSRC 1load_topics app/ingestion/crawler.py:68load_topicsSRC 1
class 2 function 3every box and arrow cites a source line; click one

← app/ingestion component flow

run_ingest code

2 functions

level 1level 25 uses app/ingestion/run_ingest.py:21 app/ingestion/run_ingest.py:46 app/ingestion/run_ingest.py:48 app/ingestion/run_ingest.py:60 app/ingestion/run_ingest.py:70__init__ app/ingestion/__init__.py__init__SRC 1crawler app/ingestion/crawler.py:1crawlerSRC 1›run_ingest app/ingestion/run_ingest.py:1run_ingest×level 1level 2calls app/ingestion/run_ingest.py:60 app/ingestion/run_ingest.py:65 app/ingestion/run_ingest.py:70 app/ingestion/run_ingest.py:73callsmain app/ingestion/run_ingest.py:40mainSRC 1_merge app/ingestion/run_ingest.py:31_mergeSRC 1
function 2solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← services +4 internals

app/graph component flow

5 components

level 1level 2level 3external8 imports app/graph/build.py:14 app/graph/build.py:15 app/graph/build.py:16 app/graph/nodes.py:19 app/graph/nodes.py:21 app/graph/nodes.py:222 imports app/graph/build.py:17 app/graph/nodes.py:258 imports app/ingestion/crawler.py:18 app/ingestion/crawler.py:19 app/ingestion/crawler.py:20 app/ingestion/crawler.py:21 app/ingestion/run_ingest.py:22 app/ingestion/run_ingest.py:232 imports app/ingestion/crawler.py:22 app/ingestion/run_ingest.py:25calls app/services/ollama_llm.py:31callsreads/writes app/services/milvus_store.py:14reads/writes app/services/cache.py:18reads/writes1 import scripts/export_graph.py:231 import scripts/export_graph.py:24ingestion app/ingestion/crawler.py:1 app/ingestion/run_ingest.py:1 app/ingestion/__init__.pyingestion3 filesSRC 3›scripts scripts/download_models.py:1 scripts/export_graph.py:1scripts2 filesSRC 2›services app/services/cache.py:1 app/services/citations.py:1 app/services/evaluation.py:1 app/services/milvus_store.py:1 app/services/ollama_llm.py:1 app/services/__init__.pyservices9 filesSRC 6›skills app/skills/__init__.py:1 app/skills/registry.py:1skills2 filesSRC 2›OpenAI API app/services/ollama_llm.py:31OpenAI APIvia langchain_openaiSRC 1Milvus app/services/milvus_store.py:14Milvusvia pymilvusSRC 1Redis app/services/cache.py:18Redisvia redisSRC 1graph app/graph/build.py:1 app/graph/nodes.py:1 app/graph/prompts.py:1 app/graph/state.py:1 app/graph/__init__.pygraph×level 1level 2level 32 uses app/graph/build.py:12 app/graph/build.py:551 use app/graph/build.py:131 use app/graph/nodes.py:181 use app/graph/nodes.py:181 use app/graph/nodes.py:20build app/graph/build.py:1buildSRC 1›nodes app/graph/nodes.py:1nodesSRC 1›__init__ app/graph/__init__.py__init__SRC 1prompts app/graph/prompts.py:1promptsSRC 1›state app/graph/state.py:1stateSRC 1›
component 5solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← services +4 internals

app/ingestion component flow

3 components

level 1level 2level 3external8 imports app/graph/build.py:14 app/graph/build.py:15 app/graph/build.py:16 app/graph/nodes.py:19 app/graph/nodes.py:21 app/graph/nodes.py:222 imports app/graph/build.py:17 app/graph/nodes.py:258 imports app/ingestion/crawler.py:18 app/ingestion/crawler.py:19 app/ingestion/crawler.py:20 app/ingestion/crawler.py:21 app/ingestion/run_ingest.py:22 app/ingestion/run_ingest.py:232 imports app/ingestion/crawler.py:22 app/ingestion/run_ingest.py:25calls app/services/ollama_llm.py:31callsreads/writes app/services/milvus_store.py:14reads/writes app/services/cache.py:18reads/writes1 import scripts/export_graph.py:231 import scripts/export_graph.py:24scripts scripts/download_models.py:1 scripts/export_graph.py:1scripts2 filesSRC 2›graph app/graph/build.py:1 app/graph/nodes.py:1 app/graph/prompts.py:1 app/graph/state.py:1 app/graph/__init__.pygraph5 filesSRC 5›services app/services/cache.py:1 app/services/citations.py:1 app/services/evaluation.py:1 app/services/milvus_store.py:1 app/services/ollama_llm.py:1 app/services/__init__.pyservices9 filesSRC 6›skills app/skills/__init__.py:1 app/skills/registry.py:1skills2 filesSRC 2›OpenAI API app/services/ollama_llm.py:31OpenAI APIvia langchain_openaiSRC 1Milvus app/services/milvus_store.py:14Milvusvia pymilvusSRC 1Redis app/services/cache.py:18Redisvia redisSRC 1ingestion app/ingestion/crawler.py:1 app/ingestion/run_ingest.py:1 app/ingestion/__init__.pyingestion×level 1level 25 uses app/ingestion/run_ingest.py:21 app/ingestion/run_ingest.py:46 app/ingestion/run_ingest.py:48 app/ingestion/run_ingest.py:60 app/ingestion/run_ingest.py:70__init__ app/ingestion/__init__.py__init__SRC 1run_ingest app/ingestion/run_ingest.py:1run_ingestSRC 1›crawler app/ingestion/crawler.py:1crawlerSRC 1›
component 3solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← services +4 internals

app/services component flow

9 components

level 1level 2level 3external8 imports app/graph/build.py:14 app/graph/build.py:15 app/graph/build.py:16 app/graph/nodes.py:19 app/graph/nodes.py:21 app/graph/nodes.py:222 imports app/graph/build.py:17 app/graph/nodes.py:258 imports app/ingestion/crawler.py:18 app/ingestion/crawler.py:19 app/ingestion/crawler.py:20 app/ingestion/crawler.py:21 app/ingestion/run_ingest.py:22 app/ingestion/run_ingest.py:232 imports app/ingestion/crawler.py:22 app/ingestion/run_ingest.py:25calls app/services/ollama_llm.py:31callsreads/writes app/services/milvus_store.py:14reads/writesreads/writes app/services/cache.py:18reads/writes1 import scripts/export_graph.py:231 import scripts/export_graph.py:24ingestion app/ingestion/crawler.py:1 app/ingestion/run_ingest.py:1 app/ingestion/__init__.pyingestion3 filesSRC 3›scripts scripts/download_models.py:1 scripts/export_graph.py:1scripts2 filesSRC 2›graph app/graph/build.py:1 app/graph/nodes.py:1 app/graph/prompts.py:1 app/graph/state.py:1 app/graph/__init__.pygraph5 filesSRC 5›skills app/skills/__init__.py:1 app/skills/registry.py:1skills2 filesSRC 2›OpenAI API app/services/ollama_llm.py:31OpenAI APIvia langchain_openaiSRC 1Milvus app/services/milvus_store.py:14Milvusvia pymilvusSRC 1Redis app/services/cache.py:18Redisvia redisSRC 1services app/services/cache.py:1 app/services/citations.py:1 app/services/evaluation.py:1 app/services/milvus_store.py:1 app/services/ollama_llm.py:1 app/services/__init__.pyservices×level 1level 22 uses app/services/evaluation.py:24 app/services/evaluation.py:742 uses app/services/evaluation.py:204 app/services/evaluation.py:2121 use app/services/websearch.py:26__init__ app/services/__init__.py__init__SRC 1evaluation app/services/evaluation.py:1evaluationSRC 1›citations app/services/citations.py:1citationsSRC 1›websearch app/services/websearch.py:1websearchSRC 1›milvus_store app/services/milvus_store.py:1milvus_storeSRC 1›reranker app/services/reranker.py:1rerankerSRC 1›ollama_llm app/services/ollama_llm.py:1ollama_llmSRC 1›tracing app/services/tracing.py:1tracingSRC 1›cache app/services/cache.py:1cacheSRC 1›
component 9solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← services +4 internals

app/skills component flow

2 components

level 1level 2level 3external8 imports app/graph/build.py:14 app/graph/build.py:15 app/graph/build.py:16 app/graph/nodes.py:19 app/graph/nodes.py:21 app/graph/nodes.py:222 imports app/graph/build.py:17 app/graph/nodes.py:258 imports app/ingestion/crawler.py:18 app/ingestion/crawler.py:19 app/ingestion/crawler.py:20 app/ingestion/crawler.py:21 app/ingestion/run_ingest.py:22 app/ingestion/run_ingest.py:232 imports app/ingestion/crawler.py:22 app/ingestion/run_ingest.py:25calls app/services/ollama_llm.py:31callsreads/writes app/services/milvus_store.py:14reads/writesreads/writes app/services/cache.py:18reads/writes1 import scripts/export_graph.py:231 import scripts/export_graph.py:24ingestion app/ingestion/crawler.py:1 app/ingestion/run_ingest.py:1 app/ingestion/__init__.pyingestion3 filesSRC 3›scripts scripts/download_models.py:1 scripts/export_graph.py:1scripts2 filesSRC 2›graph app/graph/build.py:1 app/graph/nodes.py:1 app/graph/prompts.py:1 app/graph/state.py:1 app/graph/__init__.pygraph5 filesSRC 5›services app/services/cache.py:1 app/services/citations.py:1 app/services/evaluation.py:1 app/services/milvus_store.py:1 app/services/ollama_llm.py:1 app/services/__init__.pyservices9 filesSRC 6›OpenAI API app/services/ollama_llm.py:31OpenAI APIvia langchain_openaiSRC 1Milvus app/services/milvus_store.py:14Milvusvia pymilvusSRC 1Redis app/services/cache.py:18Redisvia redisSRC 1skills app/skills/__init__.py:1 app/skills/registry.py:1skills×level 1level 21 use app/skills/__init__.py:3__init__ app/skills/__init__.py:1__init__SRC 1registry app/skills/registry.py:1registrySRC 1›
component 2solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← services +4 internals

scripts component flow

2 components

level 1level 2level 3external8 imports app/graph/build.py:14 app/graph/build.py:15 app/graph/build.py:16 app/graph/nodes.py:19 app/graph/nodes.py:21 app/graph/nodes.py:222 imports app/graph/build.py:17 app/graph/nodes.py:258 imports app/ingestion/crawler.py:18 app/ingestion/crawler.py:19 app/ingestion/crawler.py:20 app/ingestion/crawler.py:21 app/ingestion/run_ingest.py:22 app/ingestion/run_ingest.py:232 imports app/ingestion/crawler.py:22 app/ingestion/run_ingest.py:25calls app/services/ollama_llm.py:31callsreads/writes app/services/milvus_store.py:14reads/writes app/services/cache.py:18reads/writes1 import scripts/export_graph.py:231 import scripts/export_graph.py:24ingestion app/ingestion/crawler.py:1 app/ingestion/run_ingest.py:1 app/ingestion/__init__.pyingestion3 filesSRC 3›graph app/graph/build.py:1 app/graph/nodes.py:1 app/graph/prompts.py:1 app/graph/state.py:1 app/graph/__init__.pygraph5 filesSRC 5›services app/services/cache.py:1 app/services/citations.py:1 app/services/evaluation.py:1 app/services/milvus_store.py:1 app/services/ollama_llm.py:1 app/services/__init__.pyservices9 filesSRC 6›skills app/skills/__init__.py:1 app/skills/registry.py:1skills2 filesSRC 2›OpenAI API app/services/ollama_llm.py:31OpenAI APIvia langchain_openaiSRC 1Milvus app/services/milvus_store.py:14Milvusvia pymilvusSRC 1Redis app/services/cache.py:18Redisvia redisSRC 1scripts scripts/download_models.py:1 scripts/export_graph.py:1scripts×level 1download_models scripts/download_models.py:1download_modelsSRC 1export_graph scripts/export_graph.py:1export_graphSRC 1
component 2every box and arrow cites a source line; click one

← app/services component flow

cache code

1 class and 2 functions

level 1level 22 uses app/services/evaluation.py:24 app/services/evaluation.py:742 uses app/services/evaluation.py:204 app/services/evaluation.py:2121 use app/services/websearch.py:26__init__ app/services/__init__.py__init__SRC 1evaluation app/services/evaluation.py:1evaluationSRC 1›citations app/services/citations.py:1citationsSRC 1›websearch app/services/websearch.py:1websearchSRC 1›milvus_store app/services/milvus_store.py:1milvus_storeSRC 1›reranker app/services/reranker.py:1rerankerSRC 1›ollama_llm app/services/ollama_llm.py:1ollama_llmSRC 1›tracing app/services/tracing.py:1tracingSRC 1›cache app/services/cache.py:1cache×level 1CacheService app/services/cache.py:31CacheServiceSRC 1_hash app/services/cache.py:27_hashSRC 1_key app/services/cache.py:23_keySRC 1
class 1 function 2every box and arrow cites a source line; click one

← app/services component flow

citations code

3 functions

level 1level 22 uses app/services/evaluation.py:24 app/services/evaluation.py:742 uses app/services/evaluation.py:204 app/services/evaluation.py:2121 use app/services/websearch.py:26__init__ app/services/__init__.py__init__SRC 1evaluation app/services/evaluation.py:1evaluationSRC 1›websearch app/services/websearch.py:1websearchSRC 1›milvus_store app/services/milvus_store.py:1milvus_storeSRC 1›reranker app/services/reranker.py:1rerankerSRC 1›ollama_llm app/services/ollama_llm.py:1ollama_llmSRC 1›tracing app/services/tracing.py:1tracingSRC 1›cache app/services/cache.py:1cacheSRC 1›citations app/services/citations.py:1citations×level 1level 2level 3calls app/services/citations.py:39 app/services/citations.py:44callscalls app/services/citations.py:61callscitation_link app/services/citations.py:49citation_linkSRC 1build_text_fragment app/services/citations.py:23build_text_fragmentSRC 1_encode app/services/citations.py:17_encodeSRC 1
function 3solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/services component flow

evaluation code

1 class and 7 functions

level 1level 22 uses app/services/evaluation.py:24 app/services/evaluation.py:742 uses app/services/evaluation.py:204 app/services/evaluation.py:2121 use app/services/websearch.py:26__init__ app/services/__init__.py__init__SRC 1citations app/services/citations.py:1citationsSRC 1›websearch app/services/websearch.py:1websearchSRC 1›milvus_store app/services/milvus_store.py:1milvus_storeSRC 1›reranker app/services/reranker.py:1rerankerSRC 1›ollama_llm app/services/ollama_llm.py:1ollama_llmSRC 1›tracing app/services/tracing.py:1tracingSRC 1›cache app/services/cache.py:1cacheSRC 1›evaluation app/services/evaluation.py:1evaluation×level 1level 2level 3calls app/services/evaluation.py:74callscalls app/services/evaluation.py:206callscalls app/services/evaluation.py:214callscalls app/services/evaluation.py:213callscalls app/services/evaluation.py:118callscalls app/services/evaluation.py:151callscalls app/services/evaluation.py:179callsevaluate_and_score app/services/evaluation.py:194evaluate_and_scoreSRC 1offline_metrics app/services/evaluation.py:129offline_metricsSRC 1build_judge app/services/evaluation.py:36build_judgeSRC 1live_metrics app/services/evaluation.py:112live_metricsSRC 1score_test_case app/services/evaluation.py:168score_test_caseSRC 1_LangchainJudge app/services/evaluation.py:40_LangchainJudgeSRC 1_geval_metrics app/services/evaluation.py:77_geval_metricsSRC 1_metric_name app/services/evaluation.py:154_metric_nameSRC 1
class 1 function 7solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/services component flow

milvus_store code

1 class and 4 functions

level 1level 22 uses app/services/evaluation.py:24 app/services/evaluation.py:742 uses app/services/evaluation.py:204 app/services/evaluation.py:2121 use app/services/websearch.py:26__init__ app/services/__init__.py__init__SRC 1evaluation app/services/evaluation.py:1evaluationSRC 1›citations app/services/citations.py:1citationsSRC 1›websearch app/services/websearch.py:1websearchSRC 1›reranker app/services/reranker.py:1rerankerSRC 1›ollama_llm app/services/ollama_llm.py:1ollama_llmSRC 1›tracing app/services/tracing.py:1tracingSRC 1›cache app/services/cache.py:1cacheSRC 1›milvus_store app/services/milvus_store.py:1milvus_store×level 1level 2calls app/services/milvus_store.py:65callsMilvusStore app/services/milvus_store.py:70MilvusStoreSRC 1source_filter app/services/milvus_store.py:56source_filterSRC 1chunk_id app/services/milvus_store.py:19chunk_idSRC 1content_hash app/services/milvus_store.py:25content_hashSRC 1_quote_list app/services/milvus_store.py:51_quote_listSRC 1
class 1 function 4solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/services component flow

ollama_llm code

3 functions

level 1level 22 uses app/services/evaluation.py:24 app/services/evaluation.py:742 uses app/services/evaluation.py:204 app/services/evaluation.py:2121 use app/services/websearch.py:26__init__ app/services/__init__.py__init__SRC 1evaluation app/services/evaluation.py:1evaluationSRC 1›citations app/services/citations.py:1citationsSRC 1›websearch app/services/websearch.py:1websearchSRC 1›milvus_store app/services/milvus_store.py:1milvus_storeSRC 1›reranker app/services/reranker.py:1rerankerSRC 1›tracing app/services/tracing.py:1tracingSRC 1›cache app/services/cache.py:1cacheSRC 1›ollama_llm app/services/ollama_llm.py:1ollama_llm×level 1build_chat_llm app/services/ollama_llm.py:21build_chat_llmSRC 1build_embeddings app/services/ollama_llm.py:76build_embeddingsSRC 1build_eval_llm app/services/ollama_llm.py:49build_eval_llmSRC 1
function 3every box and arrow cites a source line; click one

← app/services component flow

reranker code

2 classes

level 1level 22 uses app/services/evaluation.py:24 app/services/evaluation.py:742 uses app/services/evaluation.py:204 app/services/evaluation.py:2121 use app/services/websearch.py:26__init__ app/services/__init__.py__init__SRC 1evaluation app/services/evaluation.py:1evaluationSRC 1›citations app/services/citations.py:1citationsSRC 1›websearch app/services/websearch.py:1websearchSRC 1›milvus_store app/services/milvus_store.py:1milvus_storeSRC 1›ollama_llm app/services/ollama_llm.py:1ollama_llmSRC 1›tracing app/services/tracing.py:1tracingSRC 1›cache app/services/cache.py:1cacheSRC 1›reranker app/services/reranker.py:1reranker×level 1RerankCandidate app/services/reranker.py:16RerankCandidateSRC 1Reranker app/services/reranker.py:23RerankerSRC 1
class 2every box and arrow cites a source line; click one

← app/services component flow

tracing code

4 functions

level 1level 22 uses app/services/evaluation.py:24 app/services/evaluation.py:742 uses app/services/evaluation.py:204 app/services/evaluation.py:2121 use app/services/websearch.py:26__init__ app/services/__init__.py__init__SRC 1evaluation app/services/evaluation.py:1evaluationSRC 1›citations app/services/citations.py:1citationsSRC 1›websearch app/services/websearch.py:1websearchSRC 1›milvus_store app/services/milvus_store.py:1milvus_storeSRC 1›reranker app/services/reranker.py:1rerankerSRC 1›ollama_llm app/services/ollama_llm.py:1ollama_llmSRC 1›cache app/services/cache.py:1cacheSRC 1›tracing app/services/tracing.py:1tracing×level 1level 2level 3calls app/services/tracing.py:66callscalls app/services/tracing.py:84callscalls app/services/tracing.py:28callsattach_citations app/services/tracing.py:47attach_citationsSRC 1make_chat_handler app/services/tracing.py:22make_chat_handlerSRC 1langfuse_client app/services/tracing.py:82langfuse_clientSRC 1tracing_enabled app/services/tracing.py:17tracing_enabledSRC 1
function 4solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/services component flow

websearch code

2 classes

level 1level 22 uses app/services/evaluation.py:24 app/services/evaluation.py:742 uses app/services/evaluation.py:204 app/services/evaluation.py:2121 use app/services/websearch.py:26__init__ app/services/__init__.py__init__SRC 1evaluation app/services/evaluation.py:1evaluationSRC 1›citations app/services/citations.py:1citationsSRC 1›milvus_store app/services/milvus_store.py:1milvus_storeSRC 1›reranker app/services/reranker.py:1rerankerSRC 1›ollama_llm app/services/ollama_llm.py:1ollama_llmSRC 1›tracing app/services/tracing.py:1tracingSRC 1›cache app/services/cache.py:1cacheSRC 1›websearch app/services/websearch.py:1websearch×level 1WebDocument app/services/websearch.py:32WebDocumentSRC 1WebSearchService app/services/websearch.py:38WebSearchServiceSRC 1
class 2every box and arrow cites a source line; click one

← app/skills component flow

registry code

2 classes and 2 functions

level 1level 21 use app/skills/__init__.py:3__init__ app/skills/__init__.py:1__init__SRC 1registry app/skills/registry.py:1registry×level 1Skill app/skills/registry.py:25SkillSRC 1SkillRegistry app/skills/registry.py:65SkillRegistrySRC 1_resolve_skills_dir app/skills/registry.py:57_resolve_skills_dirSRC 1parse_frontmatter app/skills/registry.py:39parse_frontmatterSRC 1
class 2 function 2every box and arrow cites a source line; click one

← Architecture

app +2 internals

3 modules, 1 external

in a cycleexternalreads/writes app/api/conversations.py:13reads/writes12 imports app/api/admin.py:11 app/api/admin.py:40 app/api/chat.py:29 app/api/chat.py:185 app/eval/offline.py:32 app/eval/offline.py:38calls app/services/ollama_llm.py:31callsreads/writes app/services/milvus_store.py:14reads/writesreads/writes app/services/cache.py:1810 imports app/graph/nodes.py:17 app/ingestion/run_ingest.py:20 app/services/cache.py:20 app/services/evaluation.py:23 app/services/milvus_store.py:16 app/services/ollama_llm.py:18services +4 app/services/cache.py:1 app/services/citations.py:1 app/services/evaluation.py:1 app/services/milvus_store.py:1 app/services/ollama_llm.py:1 app/services/__init__.pyservices +45 modulesSRC 6›SQLite app/api/conversations.py:13SQLitevia sqlite3SRC 1OpenAI API app/services/ollama_llm.py:31OpenAI APIvia langchain_openaiSRC 1Milvus app/services/milvus_store.py:14Milvusvia pymilvusSRC 1Redis app/services/cache.py:18Redisvia redisSRC 1app +2 app/__init__.py:1 app/api/admin.py:1 app/api/chat.py:1 app/api/conversations.py:1 app/config.py:1 app/main.py:1app +2×level 1in a cycleexternal1 import app/main.py:193 imports app/api/admin.py:10 app/api/chat.py:28 app/api/conversations.py:26reads/writes app/api/conversations.py:13reads/writes2 imports app/eval/offline.py:30 app/eval/offline.py:31eval app/eval/__init__.py:1 app/eval/offline.py:1eval2 filesSRC 2›app app/__init__.py:1 app/config.py:1 app/main.py:1app3 filesSRC 3›api app/api/admin.py:1 app/api/chat.py:1 app/api/conversations.py:1 app/api/conversations.py:97 app/api/models.py:1 app/api/skills.py:1apiFastAPI · 6 routesSRC 6›SQLite app/api/conversations.py:13SQLitevia sqlite3SRC 1
backend 1 database 1 module 2solid arrows are imports (count on hover); dashed arrows carry their verb (some only in the passport)every box and arrow cites a source line; click one

← Architecture

services +4 internals

5 modules, 3 external

in a cycleexternalreads/writes app/api/conversations.py:13reads/writes12 imports app/api/admin.py:11 app/api/admin.py:40 app/api/chat.py:29 app/api/chat.py:185 app/eval/offline.py:32 app/eval/offline.py:38calls app/services/ollama_llm.py:31callsreads/writes app/services/milvus_store.py:14reads/writesreads/writes app/services/cache.py:1810 imports app/graph/nodes.py:17 app/ingestion/run_ingest.py:20 app/services/cache.py:20 app/services/evaluation.py:23 app/services/milvus_store.py:16 app/services/ollama_llm.py:18app +2 app/__init__.py:1 app/api/admin.py:1 app/api/chat.py:1 app/api/conversations.py:1 app/config.py:1 app/main.py:1app +23 modulesSRC 6›SQLite app/api/conversations.py:13SQLitevia sqlite3SRC 1OpenAI API app/services/ollama_llm.py:31OpenAI APIvia langchain_openaiSRC 1Milvus app/services/milvus_store.py:14Milvusvia pymilvusSRC 1Redis app/services/cache.py:18Redisvia redisSRC 1services +4 app/services/cache.py:1 app/services/citations.py:1 app/services/evaluation.py:1 app/services/milvus_store.py:1 app/services/ollama_llm.py:1 app/services/__init__.pyservices +4×level 1level 2level 3external8 imports app/graph/build.py:14 app/graph/build.py:15 app/graph/build.py:16 app/graph/nodes.py:19 app/graph/nodes.py:21 app/graph/nodes.py:222 imports app/graph/build.py:17 app/graph/nodes.py:258 imports app/ingestion/crawler.py:18 app/ingestion/crawler.py:19 app/ingestion/crawler.py:20 app/ingestion/crawler.py:21 app/ingestion/run_ingest.py:22 app/ingestion/run_ingest.py:232 imports app/ingestion/crawler.py:22 app/ingestion/run_ingest.py:25calls app/services/ollama_llm.py:31callsreads/writes app/services/milvus_store.py:14reads/writes app/services/cache.py:18reads/writes1 import scripts/export_graph.py:231 import scripts/export_graph.py:24ingestion app/ingestion/crawler.py:1 app/ingestion/run_ingest.py:1 app/ingestion/__init__.pyingestion3 filesSRC 3›scripts scripts/download_models.py:1 scripts/export_graph.py:1scripts2 filesSRC 2›graph app/graph/build.py:1 app/graph/nodes.py:1 app/graph/prompts.py:1 app/graph/state.py:1 app/graph/__init__.pygraph5 filesSRC 5›services app/services/cache.py:1 app/services/citations.py:1 app/services/evaluation.py:1 app/services/milvus_store.py:1 app/services/ollama_llm.py:1 app/services/__init__.pyservices9 filesSRC 6›skills app/skills/__init__.py:1 app/skills/registry.py:1skills2 filesSRC 2›OpenAI API app/services/ollama_llm.py:31OpenAI APIvia langchain_openaiSRC 1Milvus app/services/milvus_store.py:14Milvusvia pymilvusSRC 1Redis app/services/cache.py:18Redisvia redisSRC 1
cloud 1 database 2 module 5solid arrows are imports (count on hover); dashed arrows carry their verb (some only in the passport)every box and arrow cites a source line; click one
click a box for its passport; double-click it, or its ›, to open it in place (keyboard: Enter, Shift+Enter); shift-click two boxes for a path; a legend swatch mutes a kind
Guided views 0 / 2Explore this system
  1. 01api6 boxes
  2. 02/admin/ingest, /chat …2 boxes

Data flow

1 ingress module, 5 domain modules, 4 external; 5 lateral imports and 4 upstream imports not drawn

01 / Ingress app/api/admin.py:2501 / Ingress02 / Handlers app/api/admin.py:2502 / Handlers03 / Domain app/api/admin.py:10 app/api/admin.py:11 app/api/admin.py:40 app/main.py:21 app/main.py:2603 / Domain04 / Storage / External app/api/conversations.py:13 app/services/cache.py:18 app/services/milvus_store.py:14 app/services/ollama_llm.py:3104 / Storage / External1 import app/main.py:211 import app/main.py:263 imports app/api/admin.py:10 app/api/chat.py:28 app/api/conversations.py:261 import app/api/admin.py:113 imports app/api/admin.py:40 app/api/chat.py:29 app/api/chat.py:185reads/writes app/api/conversations.py:13reads/writes2 imports app/ingestion/crawler.py:22 app/ingestion/run_ingest.py:25calls app/services/ollama_llm.py:31callsreads/writes app/services/milvus_store.py:14reads/writesreads/writes app/services/cache.py:18reads/writeshandles app/api/admin.py:25 app/api/chat.py:69 app/api/chat.py:84 app/api/conversations.py:97 app/api/conversations.py:129 app/api/skills.py:12handlesapp app/__init__.py:1 app/config.py:1 app/main.py:1app3 filesSRC 3›api app/api/admin.py:1 app/api/chat.py:1 app/api/conversations.py:1 app/api/models.py:1 app/api/skills.py:1 app/api/__init__.pyapiFastAPI · 6 routesSRC 6›graph app/graph/build.py:1 app/graph/nodes.py:1 app/graph/prompts.py:1 app/graph/state.py:1 app/graph/__init__.pygraph5 filesSRC 5›ingestion app/ingestion/crawler.py:1 app/ingestion/run_ingest.py:1 app/ingestion/__init__.pyingestion3 filesSRC 3›services app/services/cache.py:1 app/services/citations.py:1 app/services/evaluation.py:1 app/services/milvus_store.py:1 app/services/ollama_llm.py:1 app/services/__init__.pyservices9 filesSRC 6›skills app/skills/__init__.py:1 app/skills/registry.py:1skills2 filesSRC 2›OpenAI API app/services/ollama_llm.py:31OpenAI APIvia langchain_openaiSRC 1Milvus app/services/milvus_store.py:14Milvusvia pymilvusSRC 1Redis app/services/cache.py:18Redisvia redisSRC 1SQLite app/api/conversations.py:13SQLitevia sqlite3SRC 1/admin/ingest, /chat … app/api/admin.py:25 app/api/chat.py:69 app/api/chat.py:84 app/api/conversations.py:97 app/api/conversations.py:129 app/api/skills.py:12/admin/ingest, /chat …6 routesSRC 6
backend 1 cloud 1 database 3 endpoint 1 module 5solid arrows are imports (count on hover); dashed arrows carry their verbevery box and arrow cites a source line; click one
Entry points
Data stores
  • … and 2 more
External APIs
Unresolved
  • python calls: 446 unresolved · e.g. Path(__file__).resolve, client.trace, ingestor.ingest_skill
  • python imports: 6 unresolved · e.g. huggingface_hub, pytest, transformers
  • python references: 3 unresolved · e.g. huggingface_hub, transformers

← Data flow

app component flow

3 components

3 uses app/main.py:20 app/main.py:49 app/main.py:86__init__ app/__init__.py:1__init__SRC 1config app/config.py:1configSRC 1›main app/main.py:1mainSRC 1›
component 3solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← Data flow

app/api component flow

6 components

2 uses app/api/admin.py:9 app/api/admin.py:651 use app/api/chat.py:276 uses app/api/conversations.py:19 app/api/conversations.py:87 app/api/conversations.py:122 app/api/conversations.py:126 app/api/conversations.py:146 app/api/conversations.py:1542 uses app/api/skills.py:7 app/api/skills.py:16__init__ app/api/__init__.py__init__SRC 1admin app/api/admin.py:1adminSRC 1›chat app/api/chat.py:1chatSRC 1›conversations app/api/conversations.py:1conversationsSRC 1›models app/api/models.py:1modelsSRC 1›skills app/api/skills.py:1skillsSRC 1
component 6solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/api component flow

admin code

2 functions

calls app/api/admin.py:53 app/api/admin.py:57 app/api/admin.py:59calls_merge app/api/admin.py:16_mergeSRC 1ingest app/api/admin.py:26ingestSRC 1
function 2solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/api component flow

chat code

6 functions

calls app/api/chat.py:98callscalls app/api/chat.py:95callscalls app/api/chat.py:179callscalls app/api/chat.py:177calls_resolve_skill app/api/chat.py:38_resolve_skillSRC 1_schedule_scoring app/api/chat.py:182_schedule_scoringSRC 1_within_rate_limit app/api/chat.py:56_within_rate_limitSRC 1chat app/api/chat.py:85chatSRC 1event_stream app/api/chat.py:121event_streamSRC 1health app/api/chat.py:70healthSRC 1
function 6solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/api component flow

conversations code

7 functions

calls app/api/conversations.py:91callscalls app/api/conversations.py:84callscalls app/api/conversations.py:158callscalls app/api/conversations.py:142callscalls app/api/conversations.py:119callscalls app/api/conversations.py:105calls_bucket_for app/api/conversations.py:66_bucket_forSRC 1_distinct_thread_ids app/api/conversations.py:56_distinct_thread_idsSRC 1_first_user_question app/api/conversations.py:48_first_user_questionSRC 1_split_thread app/api/conversations.py:42_split_threadSRC 1_summary app/api/conversations.py:76_summarySRC 1get_conversation app/api/conversations.py:130get_conversationSRC 1list_conversations app/api/conversations.py:98list_conversationsSRC 1
function 7solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/api component flow

models code

8 classes

ChatRequest app/api/models.py:8ChatRequestSRC 1ConversationBucket app/api/models.py:45ConversationBucketSRC 1ConversationDetail app/api/models.py:59ConversationDetailSRC 1ConversationListResponse app/api/models.py:50ConversationListResponseSRC 1ConversationMessage app/api/models.py:54ConversationMessageSRC 1ConversationSummary app/api/models.py:36ConversationSummarySRC 1IngestResponse app/api/models.py:71IngestResponseSRC 1SkillInfo app/api/models.py:30SkillInfoSRC 1
class 8every box and arrow cites a source line; click one

← app component flow

config code

1 class and 1 function

calls app/config.py:117callsSettings app/config.py:11SettingsSRC 1get_settings app/config.py:115get_settingsSRC 1
class 1 function 1solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← Data flow

app/graph component flow

5 components

2 uses app/graph/build.py:12 app/graph/build.py:551 use app/graph/build.py:131 use app/graph/nodes.py:181 use app/graph/nodes.py:181 use app/graph/nodes.py:20__init__ app/graph/__init__.py__init__SRC 1build app/graph/build.py:1buildSRC 1›nodes app/graph/nodes.py:1nodesSRC 1›prompts app/graph/prompts.py:1promptsSRC 1›state app/graph/state.py:1stateSRC 1›
component 5solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/graph component flow

build code

3 functions

calls app/graph/build.py:58 app/graph/build.py:59 app/graph/build.py:60 app/graph/build.py:61 app/graph/build.py:62 app/graph/build.py:63 app/graph/build.py:64 app/graph/build.py:65 app/graph/build.py:66 app/graph/build.py:67 app/graph/build.py:68 app/graph/build.py:69calls_timed app/graph/build.py:22_timedSRC 1wrapper app/graph/build.py:30wrapperSRC 1build_graph app/graph/build.py:47build_graphSRC 1
function 3solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/graph component flow

nodes code

1 class and 3 functions

RagNodes app/graph/nodes.py:36RagNodesSRC 1_status app/graph/nodes.py:28_statusSRC 1route_after_grade app/graph/nodes.py:278route_after_gradeSRC 1route_reflect app/graph/nodes.py:303route_reflectSRC 1
class 1 function 3every box and arrow cites a source line; click one

← app/graph component flow

prompts code

6 functions

answer_quality_user app/graph/prompts.py:100answer_quality_userSRC 1generation_user app/graph/prompts.py:61generation_userSRC 1groundedness_user app/graph/prompts.py:90groundedness_userSRC 1parse_yes_no app/graph/prompts.py:18parse_yes_noSRC 1relevance_user app/graph/prompts.py:47relevance_userSRC 1rewrite_user app/graph/prompts.py:111rewrite_userSRC 1
function 6every box and arrow cites a source line; click one

← app/graph component flow

state code

2 classes

Document app/graph/state.py:11DocumentSRC 1GraphState app/graph/state.py:18GraphStateSRC 1
class 2every box and arrow cites a source line; click one

← Data flow

app/ingestion component flow

3 components

5 uses app/ingestion/run_ingest.py:21 app/ingestion/run_ingest.py:46 app/ingestion/run_ingest.py:48 app/ingestion/run_ingest.py:60 app/ingestion/run_ingest.py:70__init__ app/ingestion/__init__.py__init__SRC 1crawler app/ingestion/crawler.py:1crawlerSRC 1›run_ingest app/ingestion/run_ingest.py:1run_ingestSRC 1›
component 3solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/ingestion component flow

crawler code

2 classes and 3 functions

IngestReport app/ingestion/crawler.py:33IngestReportSRC 1Ingestor app/ingestion/crawler.py:73IngestorSRC 1_host app/ingestion/crawler.py:27_hostSRC 1chunk_text app/ingestion/crawler.py:52chunk_textSRC 1load_topics app/ingestion/crawler.py:68load_topicsSRC 1
class 2 function 3every box and arrow cites a source line; click one

← app/ingestion component flow

run_ingest code

2 functions

calls app/ingestion/run_ingest.py:60 app/ingestion/run_ingest.py:65 app/ingestion/run_ingest.py:70 app/ingestion/run_ingest.py:73calls_merge app/ingestion/run_ingest.py:31_mergeSRC 1main app/ingestion/run_ingest.py:40mainSRC 1
function 2solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app component flow

main code

1 class and 3 functions

calls app/main.py:74callscalls app/main.py:89callsRuntime app/main.py:32RuntimeSRC 1build_runtime app/main.py:42build_runtimeSRC 1create_app app/main.py:95create_appSRC 1lifespan app/main.py:85lifespanSRC 1
class 1 function 3solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← Data flow

app/services component flow

9 components

2 uses app/services/evaluation.py:24 app/services/evaluation.py:742 uses app/services/evaluation.py:204 app/services/evaluation.py:2121 use app/services/websearch.py:26__init__ app/services/__init__.py__init__SRC 1cache app/services/cache.py:1cacheSRC 1›citations app/services/citations.py:1citationsSRC 1›evaluation app/services/evaluation.py:1evaluationSRC 1›milvus_store app/services/milvus_store.py:1milvus_storeSRC 1›ollama_llm app/services/ollama_llm.py:1ollama_llmSRC 1›reranker app/services/reranker.py:1rerankerSRC 1›tracing app/services/tracing.py:1tracingSRC 1›websearch app/services/websearch.py:1websearchSRC 1›
component 9solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/services component flow

cache code

1 class and 2 functions

CacheService app/services/cache.py:31CacheServiceSRC 1_hash app/services/cache.py:27_hashSRC 1_key app/services/cache.py:23_keySRC 1
class 1 function 2every box and arrow cites a source line; click one

← app/services component flow

citations code

3 functions

calls app/services/citations.py:39 app/services/citations.py:44callscalls app/services/citations.py:61calls_encode app/services/citations.py:17_encodeSRC 1build_text_fragment app/services/citations.py:23build_text_fragmentSRC 1citation_link app/services/citations.py:49citation_linkSRC 1
function 3solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/services component flow

evaluation code

1 class and 7 functions

calls app/services/evaluation.py:74callscalls app/services/evaluation.py:206callscalls app/services/evaluation.py:214callscalls app/services/evaluation.py:213callscalls app/services/evaluation.py:118callscalls app/services/evaluation.py:151callscalls app/services/evaluation.py:179calls_geval_metrics app/services/evaluation.py:77_geval_metricsSRC 1_metric_name app/services/evaluation.py:154_metric_nameSRC 1build_judge app/services/evaluation.py:36build_judgeSRC 1_LangchainJudge app/services/evaluation.py:40_LangchainJudgeSRC 1evaluate_and_score app/services/evaluation.py:194evaluate_and_scoreSRC 1live_metrics app/services/evaluation.py:112live_metricsSRC 1offline_metrics app/services/evaluation.py:129offline_metricsSRC 1score_test_case app/services/evaluation.py:168score_test_caseSRC 1
class 1 function 7solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/services component flow

milvus_store code

1 class and 4 functions

calls app/services/milvus_store.py:65callsMilvusStore app/services/milvus_store.py:70MilvusStoreSRC 1_quote_list app/services/milvus_store.py:51_quote_listSRC 1chunk_id app/services/milvus_store.py:19chunk_idSRC 1content_hash app/services/milvus_store.py:25content_hashSRC 1source_filter app/services/milvus_store.py:56source_filterSRC 1
class 1 function 4solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/services component flow

ollama_llm code

3 functions

build_chat_llm app/services/ollama_llm.py:21build_chat_llmSRC 1build_embeddings app/services/ollama_llm.py:76build_embeddingsSRC 1build_eval_llm app/services/ollama_llm.py:49build_eval_llmSRC 1
function 3every box and arrow cites a source line; click one

← app/services component flow

reranker code

2 classes

RerankCandidate app/services/reranker.py:16RerankCandidateSRC 1Reranker app/services/reranker.py:23RerankerSRC 1
class 2every box and arrow cites a source line; click one

← app/services component flow

tracing code

4 functions

calls app/services/tracing.py:66callscalls app/services/tracing.py:84callscalls app/services/tracing.py:28callsattach_citations app/services/tracing.py:47attach_citationsSRC 1langfuse_client app/services/tracing.py:82langfuse_clientSRC 1make_chat_handler app/services/tracing.py:22make_chat_handlerSRC 1tracing_enabled app/services/tracing.py:17tracing_enabledSRC 1
function 4solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/services component flow

websearch code

2 classes

WebDocument app/services/websearch.py:32WebDocumentSRC 1WebSearchService app/services/websearch.py:38WebSearchServiceSRC 1
class 2every box and arrow cites a source line; click one

← Data flow

app/skills component flow

2 components

1 use app/skills/__init__.py:3__init__ app/skills/__init__.py:1__init__SRC 1registry app/skills/registry.py:1registrySRC 1›
component 2solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/skills component flow

registry code

2 classes and 2 functions

Skill app/skills/registry.py:25SkillSRC 1SkillRegistry app/skills/registry.py:65SkillRegistrySRC 1_resolve_skills_dir app/skills/registry.py:57_resolve_skills_dirSRC 1parse_frontmatter app/skills/registry.py:39parse_frontmatterSRC 1
class 2 function 2every box and arrow cites a source line; click one

← app component flow

config code

1 class and 1 function

3 uses app/main.py:20 app/main.py:49 app/main.py:86__init__ app/__init__.py:1__init__SRC 1main app/main.py:1mainSRC 1›config app/config.py:1config×calls app/config.py:117callsSettings app/config.py:11SettingsSRC 1get_settings app/config.py:115get_settingsSRC 1
class 1 function 1solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app component flow

main code

1 class and 3 functions

3 uses app/main.py:20 app/main.py:49 app/main.py:86__init__ app/__init__.py:1__init__SRC 1config app/config.py:1configSRC 1›main app/main.py:1main×calls app/main.py:74callscalls app/main.py:89callsRuntime app/main.py:32RuntimeSRC 1build_runtime app/main.py:42build_runtimeSRC 1create_app app/main.py:95create_appSRC 1lifespan app/main.py:85lifespanSRC 1
class 1 function 3solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/api component flow

admin code

2 functions

2 uses app/api/admin.py:9 app/api/admin.py:651 use app/api/chat.py:276 uses app/api/conversations.py:19 app/api/conversations.py:87 app/api/conversations.py:122 app/api/conversations.py:126 app/api/conversations.py:146 app/api/conversations.py:1542 uses app/api/skills.py:7 app/api/skills.py:16__init__ app/api/__init__.py__init__SRC 1chat app/api/chat.py:1chatSRC 1›conversations app/api/conversations.py:1conversationsSRC 1›models app/api/models.py:1modelsSRC 1›skills app/api/skills.py:1skillsSRC 1admin app/api/admin.py:1admin×calls app/api/admin.py:53 app/api/admin.py:57 app/api/admin.py:59calls_merge app/api/admin.py:16_mergeSRC 1ingest app/api/admin.py:26ingestSRC 1
function 2solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/api component flow

chat code

6 functions

2 uses app/api/admin.py:9 app/api/admin.py:651 use app/api/chat.py:276 uses app/api/conversations.py:19 app/api/conversations.py:87 app/api/conversations.py:122 app/api/conversations.py:126 app/api/conversations.py:146 app/api/conversations.py:1542 uses app/api/skills.py:7 app/api/skills.py:16__init__ app/api/__init__.py__init__SRC 1admin app/api/admin.py:1adminSRC 1›conversations app/api/conversations.py:1conversationsSRC 1›models app/api/models.py:1modelsSRC 1›skills app/api/skills.py:1skillsSRC 1chat app/api/chat.py:1chat×calls app/api/chat.py:98callscalls app/api/chat.py:95callscalls app/api/chat.py:179callscalls app/api/chat.py:177calls_resolve_skill app/api/chat.py:38_resolve_skillSRC 1_schedule_scoring app/api/chat.py:182_schedule_scoringSRC 1_within_rate_limit app/api/chat.py:56_within_rate_limitSRC 1chat app/api/chat.py:85chatSRC 1event_stream app/api/chat.py:121event_streamSRC 1health app/api/chat.py:70healthSRC 1
function 6solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/api component flow

conversations code

7 functions

2 uses app/api/admin.py:9 app/api/admin.py:651 use app/api/chat.py:276 uses app/api/conversations.py:19 app/api/conversations.py:87 app/api/conversations.py:122 app/api/conversations.py:126 app/api/conversations.py:146 app/api/conversations.py:1542 uses app/api/skills.py:7 app/api/skills.py:16__init__ app/api/__init__.py__init__SRC 1admin app/api/admin.py:1adminSRC 1›chat app/api/chat.py:1chatSRC 1›models app/api/models.py:1modelsSRC 1›skills app/api/skills.py:1skillsSRC 1conversations app/api/conversations.py:1conversations×calls app/api/conversations.py:91callscalls app/api/conversations.py:84callscalls app/api/conversations.py:158callscalls app/api/conversations.py:142callscalls app/api/conversations.py:119callscalls app/api/conversations.py:105calls_bucket_for app/api/conversations.py:66_bucket_forSRC 1_distinct_thread_ids app/api/conversations.py:56_distinct_thread_idsSRC 1_first_user_question app/api/conversations.py:48_first_user_questionSRC 1_split_thread app/api/conversations.py:42_split_threadSRC 1_summary app/api/conversations.py:76_summarySRC 1get_conversation app/api/conversations.py:130get_conversationSRC 1list_conversations app/api/conversations.py:98list_conversationsSRC 1
function 7solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/api component flow

models code

8 classes

2 uses app/api/admin.py:9 app/api/admin.py:651 use app/api/chat.py:276 uses app/api/conversations.py:19 app/api/conversations.py:87 app/api/conversations.py:122 app/api/conversations.py:126 app/api/conversations.py:146 app/api/conversations.py:1542 uses app/api/skills.py:7 app/api/skills.py:16__init__ app/api/__init__.py__init__SRC 1admin app/api/admin.py:1adminSRC 1›chat app/api/chat.py:1chatSRC 1›conversations app/api/conversations.py:1conversationsSRC 1›skills app/api/skills.py:1skillsSRC 1models app/api/models.py:1models×ChatRequest app/api/models.py:8ChatRequestSRC 1ConversationBucket app/api/models.py:45ConversationBucketSRC 1ConversationDetail app/api/models.py:59ConversationDetailSRC 1ConversationListResponse app/api/models.py:50ConversationListResponseSRC 1ConversationMessage app/api/models.py:54ConversationMessageSRC 1ConversationSummary app/api/models.py:36ConversationSummarySRC 1IngestResponse app/api/models.py:71IngestResponseSRC 1SkillInfo app/api/models.py:30SkillInfoSRC 1
class 8every box and arrow cites a source line; click one

← app/graph component flow

build code

3 functions

2 uses app/graph/build.py:12 app/graph/build.py:551 use app/graph/build.py:131 use app/graph/nodes.py:181 use app/graph/nodes.py:181 use app/graph/nodes.py:20__init__ app/graph/__init__.py__init__SRC 1nodes app/graph/nodes.py:1nodesSRC 1›prompts app/graph/prompts.py:1promptsSRC 1›state app/graph/state.py:1stateSRC 1›build app/graph/build.py:1build×calls app/graph/build.py:58 app/graph/build.py:59 app/graph/build.py:60 app/graph/build.py:61 app/graph/build.py:62 app/graph/build.py:63 app/graph/build.py:64 app/graph/build.py:65 app/graph/build.py:66 app/graph/build.py:67 app/graph/build.py:68 app/graph/build.py:69calls_timed app/graph/build.py:22_timedSRC 1wrapper app/graph/build.py:30wrapperSRC 1build_graph app/graph/build.py:47build_graphSRC 1
function 3solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/graph component flow

nodes code

1 class and 3 functions

2 uses app/graph/build.py:12 app/graph/build.py:551 use app/graph/build.py:131 use app/graph/nodes.py:181 use app/graph/nodes.py:181 use app/graph/nodes.py:20__init__ app/graph/__init__.py__init__SRC 1build app/graph/build.py:1buildSRC 1›prompts app/graph/prompts.py:1promptsSRC 1›state app/graph/state.py:1stateSRC 1›nodes app/graph/nodes.py:1nodes×RagNodes app/graph/nodes.py:36RagNodesSRC 1_status app/graph/nodes.py:28_statusSRC 1route_after_grade app/graph/nodes.py:278route_after_gradeSRC 1route_reflect app/graph/nodes.py:303route_reflectSRC 1
class 1 function 3every box and arrow cites a source line; click one

← app/graph component flow

prompts code

6 functions

2 uses app/graph/build.py:12 app/graph/build.py:551 use app/graph/build.py:131 use app/graph/nodes.py:181 use app/graph/nodes.py:181 use app/graph/nodes.py:20__init__ app/graph/__init__.py__init__SRC 1build app/graph/build.py:1buildSRC 1›nodes app/graph/nodes.py:1nodesSRC 1›state app/graph/state.py:1stateSRC 1›prompts app/graph/prompts.py:1prompts×answer_quality_user app/graph/prompts.py:100answer_quality_userSRC 1generation_user app/graph/prompts.py:61generation_userSRC 1groundedness_user app/graph/prompts.py:90groundedness_userSRC 1parse_yes_no app/graph/prompts.py:18parse_yes_noSRC 1relevance_user app/graph/prompts.py:47relevance_userSRC 1rewrite_user app/graph/prompts.py:111rewrite_userSRC 1
function 6every box and arrow cites a source line; click one

← app/graph component flow

state code

2 classes

2 uses app/graph/build.py:12 app/graph/build.py:551 use app/graph/build.py:131 use app/graph/nodes.py:181 use app/graph/nodes.py:181 use app/graph/nodes.py:20__init__ app/graph/__init__.py__init__SRC 1build app/graph/build.py:1buildSRC 1›nodes app/graph/nodes.py:1nodesSRC 1›prompts app/graph/prompts.py:1promptsSRC 1›state app/graph/state.py:1state×Document app/graph/state.py:11DocumentSRC 1GraphState app/graph/state.py:18GraphStateSRC 1
class 2every box and arrow cites a source line; click one

← app/ingestion component flow

crawler code

2 classes and 3 functions

5 uses app/ingestion/run_ingest.py:21 app/ingestion/run_ingest.py:46 app/ingestion/run_ingest.py:48 app/ingestion/run_ingest.py:60 app/ingestion/run_ingest.py:70__init__ app/ingestion/__init__.py__init__SRC 1run_ingest app/ingestion/run_ingest.py:1run_ingestSRC 1›crawler app/ingestion/crawler.py:1crawler×IngestReport app/ingestion/crawler.py:33IngestReportSRC 1Ingestor app/ingestion/crawler.py:73IngestorSRC 1_host app/ingestion/crawler.py:27_hostSRC 1chunk_text app/ingestion/crawler.py:52chunk_textSRC 1load_topics app/ingestion/crawler.py:68load_topicsSRC 1
class 2 function 3every box and arrow cites a source line; click one

← app/ingestion component flow

run_ingest code

2 functions

5 uses app/ingestion/run_ingest.py:21 app/ingestion/run_ingest.py:46 app/ingestion/run_ingest.py:48 app/ingestion/run_ingest.py:60 app/ingestion/run_ingest.py:70__init__ app/ingestion/__init__.py__init__SRC 1crawler app/ingestion/crawler.py:1crawlerSRC 1›run_ingest app/ingestion/run_ingest.py:1run_ingest×calls app/ingestion/run_ingest.py:60 app/ingestion/run_ingest.py:65 app/ingestion/run_ingest.py:70 app/ingestion/run_ingest.py:73calls_merge app/ingestion/run_ingest.py:31_mergeSRC 1main app/ingestion/run_ingest.py:40mainSRC 1
function 2solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/services component flow

cache code

1 class and 2 functions

2 uses app/services/evaluation.py:24 app/services/evaluation.py:742 uses app/services/evaluation.py:204 app/services/evaluation.py:2121 use app/services/websearch.py:26__init__ app/services/__init__.py__init__SRC 1citations app/services/citations.py:1citationsSRC 1›evaluation app/services/evaluation.py:1evaluationSRC 1›milvus_store app/services/milvus_store.py:1milvus_storeSRC 1›ollama_llm app/services/ollama_llm.py:1ollama_llmSRC 1›reranker app/services/reranker.py:1rerankerSRC 1›tracing app/services/tracing.py:1tracingSRC 1›websearch app/services/websearch.py:1websearchSRC 1›cache app/services/cache.py:1cache×CacheService app/services/cache.py:31CacheServiceSRC 1_hash app/services/cache.py:27_hashSRC 1_key app/services/cache.py:23_keySRC 1
class 1 function 2every box and arrow cites a source line; click one

← app/services component flow

citations code

3 functions

2 uses app/services/evaluation.py:24 app/services/evaluation.py:742 uses app/services/evaluation.py:204 app/services/evaluation.py:2121 use app/services/websearch.py:26__init__ app/services/__init__.py__init__SRC 1cache app/services/cache.py:1cacheSRC 1›evaluation app/services/evaluation.py:1evaluationSRC 1›milvus_store app/services/milvus_store.py:1milvus_storeSRC 1›ollama_llm app/services/ollama_llm.py:1ollama_llmSRC 1›reranker app/services/reranker.py:1rerankerSRC 1›tracing app/services/tracing.py:1tracingSRC 1›websearch app/services/websearch.py:1websearchSRC 1›citations app/services/citations.py:1citations×calls app/services/citations.py:39 app/services/citations.py:44callscalls app/services/citations.py:61calls_encode app/services/citations.py:17_encodeSRC 1build_text_fragment app/services/citations.py:23build_text_fragmentSRC 1citation_link app/services/citations.py:49citation_linkSRC 1
function 3solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/services component flow

evaluation code

1 class and 7 functions

2 uses app/services/evaluation.py:24 app/services/evaluation.py:742 uses app/services/evaluation.py:204 app/services/evaluation.py:2121 use app/services/websearch.py:26__init__ app/services/__init__.py__init__SRC 1cache app/services/cache.py:1cacheSRC 1›citations app/services/citations.py:1citationsSRC 1›milvus_store app/services/milvus_store.py:1milvus_storeSRC 1›ollama_llm app/services/ollama_llm.py:1ollama_llmSRC 1›reranker app/services/reranker.py:1rerankerSRC 1›tracing app/services/tracing.py:1tracingSRC 1›websearch app/services/websearch.py:1websearchSRC 1›evaluation app/services/evaluation.py:1evaluation×calls app/services/evaluation.py:74callscalls app/services/evaluation.py:206callscalls app/services/evaluation.py:214callscalls app/services/evaluation.py:213callscalls app/services/evaluation.py:118callscalls app/services/evaluation.py:151callscalls app/services/evaluation.py:179calls_geval_metrics app/services/evaluation.py:77_geval_metricsSRC 1_metric_name app/services/evaluation.py:154_metric_nameSRC 1build_judge app/services/evaluation.py:36build_judgeSRC 1_LangchainJudge app/services/evaluation.py:40_LangchainJudgeSRC 1evaluate_and_score app/services/evaluation.py:194evaluate_and_scoreSRC 1live_metrics app/services/evaluation.py:112live_metricsSRC 1offline_metrics app/services/evaluation.py:129offline_metricsSRC 1score_test_case app/services/evaluation.py:168score_test_caseSRC 1
class 1 function 7solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/services component flow

milvus_store code

1 class and 4 functions

2 uses app/services/evaluation.py:24 app/services/evaluation.py:742 uses app/services/evaluation.py:204 app/services/evaluation.py:2121 use app/services/websearch.py:26__init__ app/services/__init__.py__init__SRC 1cache app/services/cache.py:1cacheSRC 1›citations app/services/citations.py:1citationsSRC 1›evaluation app/services/evaluation.py:1evaluationSRC 1›ollama_llm app/services/ollama_llm.py:1ollama_llmSRC 1›reranker app/services/reranker.py:1rerankerSRC 1›tracing app/services/tracing.py:1tracingSRC 1›websearch app/services/websearch.py:1websearchSRC 1›milvus_store app/services/milvus_store.py:1milvus_store×calls app/services/milvus_store.py:65callsMilvusStore app/services/milvus_store.py:70MilvusStoreSRC 1_quote_list app/services/milvus_store.py:51_quote_listSRC 1chunk_id app/services/milvus_store.py:19chunk_idSRC 1content_hash app/services/milvus_store.py:25content_hashSRC 1source_filter app/services/milvus_store.py:56source_filterSRC 1
class 1 function 4solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/services component flow

ollama_llm code

3 functions

2 uses app/services/evaluation.py:24 app/services/evaluation.py:742 uses app/services/evaluation.py:204 app/services/evaluation.py:2121 use app/services/websearch.py:26__init__ app/services/__init__.py__init__SRC 1cache app/services/cache.py:1cacheSRC 1›citations app/services/citations.py:1citationsSRC 1›evaluation app/services/evaluation.py:1evaluationSRC 1›milvus_store app/services/milvus_store.py:1milvus_storeSRC 1›reranker app/services/reranker.py:1rerankerSRC 1›tracing app/services/tracing.py:1tracingSRC 1›websearch app/services/websearch.py:1websearchSRC 1›ollama_llm app/services/ollama_llm.py:1ollama_llm×build_chat_llm app/services/ollama_llm.py:21build_chat_llmSRC 1build_embeddings app/services/ollama_llm.py:76build_embeddingsSRC 1build_eval_llm app/services/ollama_llm.py:49build_eval_llmSRC 1
function 3every box and arrow cites a source line; click one

← app/services component flow

reranker code

2 classes

2 uses app/services/evaluation.py:24 app/services/evaluation.py:742 uses app/services/evaluation.py:204 app/services/evaluation.py:2121 use app/services/websearch.py:26__init__ app/services/__init__.py__init__SRC 1cache app/services/cache.py:1cacheSRC 1›citations app/services/citations.py:1citationsSRC 1›evaluation app/services/evaluation.py:1evaluationSRC 1›milvus_store app/services/milvus_store.py:1milvus_storeSRC 1›ollama_llm app/services/ollama_llm.py:1ollama_llmSRC 1›tracing app/services/tracing.py:1tracingSRC 1›websearch app/services/websearch.py:1websearchSRC 1›reranker app/services/reranker.py:1reranker×RerankCandidate app/services/reranker.py:16RerankCandidateSRC 1Reranker app/services/reranker.py:23RerankerSRC 1
class 2every box and arrow cites a source line; click one

← app/services component flow

tracing code

4 functions

2 uses app/services/evaluation.py:24 app/services/evaluation.py:742 uses app/services/evaluation.py:204 app/services/evaluation.py:2121 use app/services/websearch.py:26__init__ app/services/__init__.py__init__SRC 1cache app/services/cache.py:1cacheSRC 1›citations app/services/citations.py:1citationsSRC 1›evaluation app/services/evaluation.py:1evaluationSRC 1›milvus_store app/services/milvus_store.py:1milvus_storeSRC 1›ollama_llm app/services/ollama_llm.py:1ollama_llmSRC 1›reranker app/services/reranker.py:1rerankerSRC 1›websearch app/services/websearch.py:1websearchSRC 1›tracing app/services/tracing.py:1tracing×calls app/services/tracing.py:66callscalls app/services/tracing.py:84callscalls app/services/tracing.py:28callsattach_citations app/services/tracing.py:47attach_citationsSRC 1langfuse_client app/services/tracing.py:82langfuse_clientSRC 1make_chat_handler app/services/tracing.py:22make_chat_handlerSRC 1tracing_enabled app/services/tracing.py:17tracing_enabledSRC 1
function 4solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/services component flow

websearch code

2 classes

2 uses app/services/evaluation.py:24 app/services/evaluation.py:742 uses app/services/evaluation.py:204 app/services/evaluation.py:2121 use app/services/websearch.py:26__init__ app/services/__init__.py__init__SRC 1cache app/services/cache.py:1cacheSRC 1›citations app/services/citations.py:1citationsSRC 1›evaluation app/services/evaluation.py:1evaluationSRC 1›milvus_store app/services/milvus_store.py:1milvus_storeSRC 1›ollama_llm app/services/ollama_llm.py:1ollama_llmSRC 1›reranker app/services/reranker.py:1rerankerSRC 1›tracing app/services/tracing.py:1tracingSRC 1›websearch app/services/websearch.py:1websearch×WebDocument app/services/websearch.py:32WebDocumentSRC 1WebSearchService app/services/websearch.py:38WebSearchServiceSRC 1
class 2every box and arrow cites a source line; click one

← app/skills component flow

registry code

2 classes and 2 functions

1 use app/skills/__init__.py:3__init__ app/skills/__init__.py:1__init__SRC 1registry app/skills/registry.py:1registry×Skill app/skills/registry.py:25SkillSRC 1SkillRegistry app/skills/registry.py:65SkillRegistrySRC 1_resolve_skills_dir app/skills/registry.py:57_resolve_skills_dirSRC 1parse_frontmatter app/skills/registry.py:39parse_frontmatterSRC 1
class 2 function 2every box and arrow cites a source line; click one

← Data flow

app component flow

3 components

01 / Ingress app/api/admin.py:2501 / Ingress02 / Handlers app/api/admin.py:2502 / Handlers03 / Domain app/api/admin.py:10 app/api/admin.py:11 app/api/admin.py:40 app/main.py:21 app/main.py:2603 / Domain04 / Storage / External app/api/conversations.py:13 app/services/cache.py:18 app/services/milvus_store.py:14 app/services/ollama_llm.py:3104 / Storage / External1 import app/main.py:211 import app/main.py:263 imports app/api/admin.py:10 app/api/chat.py:28 app/api/conversations.py:261 import app/api/admin.py:113 imports app/api/admin.py:40 app/api/chat.py:29 app/api/chat.py:185reads/writes app/api/conversations.py:13reads/writes2 imports app/ingestion/crawler.py:22 app/ingestion/run_ingest.py:25calls app/services/ollama_llm.py:31callsreads/writes app/services/milvus_store.py:14reads/writesreads/writes app/services/cache.py:18reads/writeshandles app/api/admin.py:25 app/api/chat.py:69 app/api/chat.py:84 app/api/conversations.py:97 app/api/conversations.py:129 app/api/skills.py:12handlesapi app/api/admin.py:1 app/api/chat.py:1 app/api/conversations.py:1 app/api/models.py:1 app/api/skills.py:1 app/api/__init__.pyapiFastAPI · 6 routesSRC 6›graph app/graph/build.py:1 app/graph/nodes.py:1 app/graph/prompts.py:1 app/graph/state.py:1 app/graph/__init__.pygraph5 filesSRC 5›ingestion app/ingestion/crawler.py:1 app/ingestion/run_ingest.py:1 app/ingestion/__init__.pyingestion3 filesSRC 3›services app/services/cache.py:1 app/services/citations.py:1 app/services/evaluation.py:1 app/services/milvus_store.py:1 app/services/ollama_llm.py:1 app/services/__init__.pyservices9 filesSRC 6›skills app/skills/__init__.py:1 app/skills/registry.py:1skills2 filesSRC 2›OpenAI API app/services/ollama_llm.py:31OpenAI APIvia langchain_openaiSRC 1Milvus app/services/milvus_store.py:14Milvusvia pymilvusSRC 1Redis app/services/cache.py:18Redisvia redisSRC 1SQLite app/api/conversations.py:13SQLitevia sqlite3SRC 1/admin/ingest, /chat … app/api/admin.py:25 app/api/chat.py:69 app/api/chat.py:84 app/api/conversations.py:97 app/api/conversations.py:129 app/api/skills.py:12/admin/ingest, /chat …6 routesSRC 6app app/__init__.py:1 app/config.py:1 app/main.py:1app×3 uses app/main.py:20 app/main.py:49 app/main.py:86__init__ app/__init__.py:1__init__SRC 1config app/config.py:1configSRC 1›main app/main.py:1mainSRC 1›
component 3solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← Data flow

app/api component flow

6 components

01 / Ingress app/api/admin.py:2501 / Ingress02 / Handlers app/api/admin.py:2502 / Handlers03 / Domain app/api/admin.py:10 app/api/admin.py:11 app/api/admin.py:40 app/main.py:21 app/main.py:2603 / Domain04 / Storage / External app/api/conversations.py:13 app/services/cache.py:18 app/services/milvus_store.py:14 app/services/ollama_llm.py:3104 / Storage / External1 import app/main.py:211 import app/main.py:263 imports app/api/admin.py:10 app/api/chat.py:28 app/api/conversations.py:261 import app/api/admin.py:113 imports app/api/admin.py:40 app/api/chat.py:29 app/api/chat.py:185reads/writes app/api/conversations.py:13reads/writes2 imports app/ingestion/crawler.py:22 app/ingestion/run_ingest.py:25calls app/services/ollama_llm.py:31callsreads/writes app/services/milvus_store.py:14reads/writesreads/writes app/services/cache.py:18handles app/api/admin.py:25 app/api/chat.py:69 app/api/chat.py:84 app/api/conversations.py:97 app/api/conversations.py:129 app/api/skills.py:12handlesapp app/__init__.py:1 app/config.py:1 app/main.py:1app3 filesSRC 3›graph app/graph/build.py:1 app/graph/nodes.py:1 app/graph/prompts.py:1 app/graph/state.py:1 app/graph/__init__.pygraph5 filesSRC 5›ingestion app/ingestion/crawler.py:1 app/ingestion/run_ingest.py:1 app/ingestion/__init__.pyingestion3 filesSRC 3›services app/services/cache.py:1 app/services/citations.py:1 app/services/evaluation.py:1 app/services/milvus_store.py:1 app/services/ollama_llm.py:1 app/services/__init__.pyservices9 filesSRC 6›skills app/skills/__init__.py:1 app/skills/registry.py:1skills2 filesSRC 2›OpenAI API app/services/ollama_llm.py:31OpenAI APIvia langchain_openaiSRC 1Milvus app/services/milvus_store.py:14Milvusvia pymilvusSRC 1Redis app/services/cache.py:18Redisvia redisSRC 1SQLite app/api/conversations.py:13SQLitevia sqlite3SRC 1/admin/ingest, /chat … app/api/admin.py:25 app/api/chat.py:69 app/api/chat.py:84 app/api/conversations.py:97 app/api/conversations.py:129 app/api/skills.py:12/admin/ingest, /chat …6 routesSRC 6api app/api/admin.py:1 app/api/chat.py:1 app/api/conversations.py:1 app/api/models.py:1 app/api/skills.py:1 app/api/__init__.pyapi×2 uses app/api/admin.py:9 app/api/admin.py:651 use app/api/chat.py:276 uses app/api/conversations.py:19 app/api/conversations.py:87 app/api/conversations.py:122 app/api/conversations.py:126 app/api/conversations.py:146 app/api/conversations.py:1542 uses app/api/skills.py:7 app/api/skills.py:16__init__ app/api/__init__.py__init__SRC 1admin app/api/admin.py:1adminSRC 1›chat app/api/chat.py:1chatSRC 1›conversations app/api/conversations.py:1conversationsSRC 1›models app/api/models.py:1modelsSRC 1›skills app/api/skills.py:1skillsSRC 1
component 6solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← Data flow

app/graph component flow

5 components

01 / Ingress app/api/admin.py:2501 / Ingress02 / Handlers app/api/admin.py:2502 / Handlers03 / Domain app/api/admin.py:10 app/api/admin.py:11 app/api/admin.py:40 app/main.py:21 app/main.py:2603 / Domain04 / Storage / External app/api/conversations.py:13 app/services/cache.py:18 app/services/milvus_store.py:14 app/services/ollama_llm.py:3104 / Storage / External1 import app/main.py:211 import app/main.py:263 imports app/api/admin.py:10 app/api/chat.py:28 app/api/conversations.py:261 import app/api/admin.py:113 imports app/api/admin.py:40 app/api/chat.py:29 app/api/chat.py:185reads/writes app/api/conversations.py:13reads/writes2 imports app/ingestion/crawler.py:22 app/ingestion/run_ingest.py:25calls app/services/ollama_llm.py:31callsreads/writes app/services/milvus_store.py:14reads/writes app/services/cache.py:18handles app/api/admin.py:25 app/api/chat.py:69 app/api/chat.py:84 app/api/conversations.py:97 app/api/conversations.py:129 app/api/skills.py:12handlesapp app/__init__.py:1 app/config.py:1 app/main.py:1app3 filesSRC 3›api app/api/admin.py:1 app/api/chat.py:1 app/api/conversations.py:1 app/api/models.py:1 app/api/skills.py:1 app/api/__init__.pyapiFastAPI · 6 routesSRC 6›ingestion app/ingestion/crawler.py:1 app/ingestion/run_ingest.py:1 app/ingestion/__init__.pyingestion3 filesSRC 3›services app/services/cache.py:1 app/services/citations.py:1 app/services/evaluation.py:1 app/services/milvus_store.py:1 app/services/ollama_llm.py:1 app/services/__init__.pyservices9 filesSRC 6›skills app/skills/__init__.py:1 app/skills/registry.py:1skills2 filesSRC 2›OpenAI API app/services/ollama_llm.py:31OpenAI APIvia langchain_openaiSRC 1Milvus app/services/milvus_store.py:14Milvusvia pymilvusSRC 1Redis app/services/cache.py:18Redisvia redisSRC 1SQLite app/api/conversations.py:13SQLitevia sqlite3SRC 1/admin/ingest, /chat … app/api/admin.py:25 app/api/chat.py:69 app/api/chat.py:84 app/api/conversations.py:97 app/api/conversations.py:129 app/api/skills.py:12/admin/ingest, /chat …6 routesSRC 6graph app/graph/build.py:1 app/graph/nodes.py:1 app/graph/prompts.py:1 app/graph/state.py:1 app/graph/__init__.pygraph×2 uses app/graph/build.py:12 app/graph/build.py:551 use app/graph/build.py:131 use app/graph/nodes.py:181 use app/graph/nodes.py:181 use app/graph/nodes.py:20__init__ app/graph/__init__.py__init__SRC 1build app/graph/build.py:1buildSRC 1›nodes app/graph/nodes.py:1nodesSRC 1›prompts app/graph/prompts.py:1promptsSRC 1›state app/graph/state.py:1stateSRC 1›
component 5solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← Data flow

app/ingestion component flow

3 components

01 / Ingress app/api/admin.py:2501 / Ingress02 / Handlers app/api/admin.py:2502 / Handlers03 / Domain app/api/admin.py:10 app/api/admin.py:11 app/api/admin.py:40 app/main.py:21 app/main.py:2603 / Domain04 / Storage / External app/api/conversations.py:13 app/services/cache.py:18 app/services/milvus_store.py:14 app/services/ollama_llm.py:3104 / Storage / External1 import app/main.py:211 import app/main.py:263 imports app/api/admin.py:10 app/api/chat.py:28 app/api/conversations.py:261 import app/api/admin.py:113 imports app/api/admin.py:40 app/api/chat.py:29 app/api/chat.py:185reads/writes app/api/conversations.py:132 imports app/ingestion/crawler.py:22 app/ingestion/run_ingest.py:25calls app/services/ollama_llm.py:31callsreads/writes app/services/milvus_store.py:14reads/writesreads/writes app/services/cache.py:18reads/writeshandles app/api/admin.py:25 app/api/chat.py:69 app/api/chat.py:84 app/api/conversations.py:97 app/api/conversations.py:129 app/api/skills.py:12handlesapp app/__init__.py:1 app/config.py:1 app/main.py:1app3 filesSRC 3›api app/api/admin.py:1 app/api/chat.py:1 app/api/conversations.py:1 app/api/models.py:1 app/api/skills.py:1 app/api/__init__.pyapiFastAPI · 6 routesSRC 6›graph app/graph/build.py:1 app/graph/nodes.py:1 app/graph/prompts.py:1 app/graph/state.py:1 app/graph/__init__.pygraph5 filesSRC 5›services app/services/cache.py:1 app/services/citations.py:1 app/services/evaluation.py:1 app/services/milvus_store.py:1 app/services/ollama_llm.py:1 app/services/__init__.pyservices9 filesSRC 6›skills app/skills/__init__.py:1 app/skills/registry.py:1skills2 filesSRC 2›OpenAI API app/services/ollama_llm.py:31OpenAI APIvia langchain_openaiSRC 1Milvus app/services/milvus_store.py:14Milvusvia pymilvusSRC 1Redis app/services/cache.py:18Redisvia redisSRC 1SQLite app/api/conversations.py:13SQLitevia sqlite3SRC 1/admin/ingest, /chat … app/api/admin.py:25 app/api/chat.py:69 app/api/chat.py:84 app/api/conversations.py:97 app/api/conversations.py:129 app/api/skills.py:12/admin/ingest, /chat …6 routesSRC 6ingestion app/ingestion/crawler.py:1 app/ingestion/run_ingest.py:1 app/ingestion/__init__.pyingestion×5 uses app/ingestion/run_ingest.py:21 app/ingestion/run_ingest.py:46 app/ingestion/run_ingest.py:48 app/ingestion/run_ingest.py:60 app/ingestion/run_ingest.py:70__init__ app/ingestion/__init__.py__init__SRC 1crawler app/ingestion/crawler.py:1crawlerSRC 1›run_ingest app/ingestion/run_ingest.py:1run_ingestSRC 1›
component 3solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← Data flow

app/services component flow

9 components

01 / Ingress app/api/admin.py:2501 / Ingress02 / Handlers app/api/admin.py:2502 / Handlers03 / Domain app/api/admin.py:10 app/api/admin.py:11 app/api/admin.py:40 app/main.py:21 app/main.py:2603 / Domain04 / Storage / External app/api/conversations.py:13 app/services/cache.py:18 app/services/milvus_store.py:14 app/services/ollama_llm.py:3104 / Storage / External1 import app/main.py:211 import app/main.py:263 imports app/api/admin.py:10 app/api/chat.py:28 app/api/conversations.py:261 import app/api/admin.py:113 imports app/api/admin.py:40 app/api/chat.py:29 app/api/chat.py:185reads/writes app/api/conversations.py:13reads/writes2 imports app/ingestion/crawler.py:22 app/ingestion/run_ingest.py:25calls app/services/ollama_llm.py:31callsreads/writes app/services/milvus_store.py:14reads/writesreads/writes app/services/cache.py:18reads/writeshandles app/api/admin.py:25 app/api/chat.py:69 app/api/chat.py:84 app/api/conversations.py:97 app/api/conversations.py:129 app/api/skills.py:12handlesapp app/__init__.py:1 app/config.py:1 app/main.py:1app3 filesSRC 3›api app/api/admin.py:1 app/api/chat.py:1 app/api/conversations.py:1 app/api/models.py:1 app/api/skills.py:1 app/api/__init__.pyapiFastAPI · 6 routesSRC 6›graph app/graph/build.py:1 app/graph/nodes.py:1 app/graph/prompts.py:1 app/graph/state.py:1 app/graph/__init__.pygraph5 filesSRC 5›ingestion app/ingestion/crawler.py:1 app/ingestion/run_ingest.py:1 app/ingestion/__init__.pyingestion3 filesSRC 3›skills app/skills/__init__.py:1 app/skills/registry.py:1skills2 filesSRC 2›OpenAI API app/services/ollama_llm.py:31OpenAI APIvia langchain_openaiSRC 1Milvus app/services/milvus_store.py:14Milvusvia pymilvusSRC 1Redis app/services/cache.py:18Redisvia redisSRC 1SQLite app/api/conversations.py:13SQLitevia sqlite3SRC 1/admin/ingest, /chat … app/api/admin.py:25 app/api/chat.py:69 app/api/chat.py:84 app/api/conversations.py:97 app/api/conversations.py:129 app/api/skills.py:12/admin/ingest, /chat …6 routesSRC 6services app/services/cache.py:1 app/services/citations.py:1 app/services/evaluation.py:1 app/services/milvus_store.py:1 app/services/ollama_llm.py:1 app/services/__init__.pyservices×2 uses app/services/evaluation.py:24 app/services/evaluation.py:742 uses app/services/evaluation.py:204 app/services/evaluation.py:2121 use app/services/websearch.py:26__init__ app/services/__init__.py__init__SRC 1cache app/services/cache.py:1cacheSRC 1›citations app/services/citations.py:1citationsSRC 1›evaluation app/services/evaluation.py:1evaluationSRC 1›milvus_store app/services/milvus_store.py:1milvus_storeSRC 1›ollama_llm app/services/ollama_llm.py:1ollama_llmSRC 1›reranker app/services/reranker.py:1rerankerSRC 1›tracing app/services/tracing.py:1tracingSRC 1›websearch app/services/websearch.py:1websearchSRC 1›
component 9solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← Data flow

app/skills component flow

2 components

01 / Ingress app/api/admin.py:2501 / Ingress02 / Handlers app/api/admin.py:2502 / Handlers03 / Domain app/api/admin.py:10 app/api/admin.py:11 app/api/admin.py:40 app/main.py:21 app/main.py:2603 / Domain04 / Storage / External app/api/conversations.py:13 app/services/cache.py:18 app/services/milvus_store.py:14 app/services/ollama_llm.py:3104 / Storage / External1 import app/main.py:211 import app/main.py:263 imports app/api/admin.py:10 app/api/chat.py:28 app/api/conversations.py:261 import app/api/admin.py:113 imports app/api/admin.py:40 app/api/chat.py:29 app/api/chat.py:185reads/writes app/api/conversations.py:13reads/writes2 imports app/ingestion/crawler.py:22 app/ingestion/run_ingest.py:25calls app/services/ollama_llm.py:31callsreads/writes app/services/milvus_store.py:14reads/writes app/services/cache.py:18handles app/api/admin.py:25 app/api/chat.py:69 app/api/chat.py:84 app/api/conversations.py:97 app/api/conversations.py:129 app/api/skills.py:12handlesapp app/__init__.py:1 app/config.py:1 app/main.py:1app3 filesSRC 3›api app/api/admin.py:1 app/api/chat.py:1 app/api/conversations.py:1 app/api/models.py:1 app/api/skills.py:1 app/api/__init__.pyapiFastAPI · 6 routesSRC 6›graph app/graph/build.py:1 app/graph/nodes.py:1 app/graph/prompts.py:1 app/graph/state.py:1 app/graph/__init__.pygraph5 filesSRC 5›ingestion app/ingestion/crawler.py:1 app/ingestion/run_ingest.py:1 app/ingestion/__init__.pyingestion3 filesSRC 3›services app/services/cache.py:1 app/services/citations.py:1 app/services/evaluation.py:1 app/services/milvus_store.py:1 app/services/ollama_llm.py:1 app/services/__init__.pyservices9 filesSRC 6›OpenAI API app/services/ollama_llm.py:31OpenAI APIvia langchain_openaiSRC 1Milvus app/services/milvus_store.py:14Milvusvia pymilvusSRC 1Redis app/services/cache.py:18Redisvia redisSRC 1SQLite app/api/conversations.py:13SQLitevia sqlite3SRC 1/admin/ingest, /chat … app/api/admin.py:25 app/api/chat.py:69 app/api/chat.py:84 app/api/conversations.py:97 app/api/conversations.py:129 app/api/skills.py:12/admin/ingest, /chat …6 routesSRC 6skills app/skills/__init__.py:1 app/skills/registry.py:1skills×1 use app/skills/__init__.py:3__init__ app/skills/__init__.py:1__init__SRC 1registry app/skills/registry.py:1registrySRC 1›
component 2solid arrows are imports (count on hover)every box and arrow cites a source line; click one
click a box for its passport; double-click it, or its ›, to open it in place (keyboard: Enter, Shift+Enter); shift-click two boxes for a path; a legend swatch mutes a kind
Guided views 0 / 5Explore this system
  1. 01api6 boxes
  2. 02milvus-standalone5 boxes
  3. 03attu2 boxes
  4. 04etcd2 boxes
  5. 05langfuse2 boxes

Deploy topology

1 backend, 4 services, 5 databases, 1 cloud

depends on docker-compose.yml:86reads/writes Dockerfile:23 app/services/cache.py:18calls Dockerfile:23 app/services/ollama_llm.py:31callsreads/writes Dockerfile:23 app/services/milvus_store.py:14reads/writes Dockerfile:23 app/api/conversations.py:13reads/writesdepends on docker-compose.yml:98depends on docker-compose.yml:143depends on docker-compose.yml:47depends ondepends on docker-compose.yml:48depends onapi docker-compose.yml:68apiships app/ · 6 routesSRC 1attu docker-compose.yml:91attuzilliz/attu:v2.4SRC 1etcd docker-compose.yml:2etcdquay.io/coreos/etcd:v3.5.16SRC 1langfuse docker-compose.yml:118langfuselangfuse/langfuse:2SRC 1langfuse-db docker-compose.yml:103langfuse-dbPostgreSQL · postgres:16-alpineSRC 1milvus-standalone docker-compose.yml:35milvus-standalonemilvusdb/milvus:v2.5.3SRC 1minio docker-compose.yml:18miniominio/minio:RELEASE.2024-12-18T13-15-44ZSRC 1redis docker-compose.yml:56redisRedis · redis:7.4-alpineSRC 1OpenAI API app/services/ollama_llm.py:31OpenAI APIvia langchain_openaiSRC 1Milvus app/services/milvus_store.py:14Milvusvia pymilvusSRC 1SQLite app/api/conversations.py:13SQLitevia sqlite3SRC 1
backend 1 cloud 1 database 5 service 4dashed arrows carry their verb (some only in the passport)every box and arrow cites a source line; click one
Entry points
Data stores
  • … and 2 more
External APIs
Unresolved
  • python calls: 446 unresolved · e.g. Path(__file__).resolve, client.trace, ingestor.ingest_skill
  • python imports: 6 unresolved · e.g. huggingface_hub, pytest, transformers
  • python references: 3 unresolved · e.g. huggingface_hub, transformers
click a box for its passport; double-click it, or its ›, to open it in place (keyboard: Enter, Shift+Enter); shift-click two boxes for a path; a legend swatch mutes a kind
Guided views 0 / 1Explore this system
  1. 01api4 boxes

Module dependencies

8 modules, 19 dependencies

1 import app/main.py:191 import app/main.py:214 imports app/main.py:22 app/main.py:23 app/main.py:24 app/main.py:251 import app/main.py:263 imports app/api/admin.py:10 app/api/chat.py:28 app/api/conversations.py:261 import app/api/admin.py:113 imports app/api/admin.py:40 app/api/chat.py:29 app/api/chat.py:1852 imports app/eval/offline.py:30 app/eval/offline.py:312 imports app/eval/offline.py:32 app/eval/offline.py:381 import app/graph/nodes.py:178 imports app/graph/build.py:14 app/graph/build.py:15 app/graph/build.py:16 app/graph/nodes.py:19 app/graph/nodes.py:21 app/graph/nodes.py:222 imports app/graph/build.py:17 app/graph/nodes.py:251 import app/ingestion/run_ingest.py:208 imports app/ingestion/crawler.py:18 app/ingestion/crawler.py:19 app/ingestion/crawler.py:20 app/ingestion/crawler.py:21 app/ingestion/run_ingest.py:22 app/ingestion/run_ingest.py:232 imports app/ingestion/crawler.py:22 app/ingestion/run_ingest.py:257 imports app/services/cache.py:20 app/services/evaluation.py:23 app/services/milvus_store.py:16 app/services/ollama_llm.py:18 app/services/reranker.py:12 app/services/tracing.py:121 import app/skills/registry.py:211 import scripts/export_graph.py:231 import scripts/export_graph.py:24services app/services/cache.py:1 app/services/citations.py:1 app/services/evaluation.py:1 app/services/milvus_store.py:1 app/services/ollama_llm.py:1 app/services/__init__.pyservices9 filesSRC 6skills app/skills/__init__.py:1 app/skills/registry.py:1skills2 filesSRC 2ingestion app/ingestion/crawler.py:1 app/ingestion/run_ingest.py:1 app/ingestion/__init__.pyingestion3 filesSRC 3graph app/graph/build.py:1 app/graph/nodes.py:1 app/graph/prompts.py:1 app/graph/state.py:1 app/graph/__init__.pygraph5 filesSRC 5api app/api/admin.py:1 app/api/chat.py:1 app/api/conversations.py:1 app/api/conversations.py:97 app/api/models.py:1 app/api/skills.py:1apiFastAPI · 6 routesSRC 6scripts scripts/download_models.py:1 scripts/export_graph.py:1scripts2 filesSRC 2app app/__init__.py:1 app/config.py:1 app/main.py:1app3 filesSRC 3eval app/eval/__init__.py:1 app/eval/offline.py:1eval2 filesSRC 2
backend 1 module 7solid arrows are imports (count on hover)every box and arrow cites a source line; click one
Entry points
Data stores
  • … and 2 more
External APIs
Unresolved
  • python calls: 446 unresolved · e.g. Path(__file__).resolve, client.trace, ingestor.ingest_skill
  • python imports: 6 unresolved · e.g. huggingface_hub, pytest, transformers
  • python references: 3 unresolved · e.g. huggingface_hub, transformers
click a box for its passport; double-click it, or its ›, to open it in place (keyboard: Enter, Shift+Enter); shift-click two boxes for a path; a legend swatch mutes a kind
Guided views 0 / 1Explore this system
  1. 01api5 boxes

app/api request flow

6 modules within 2 import hops; reachability, not call order; 5 lateral imports and 4 upstream imports not drawn

handler app/api/admin.py:25handlerhop 1 app/api/admin.py:10 app/api/admin.py:11 app/api/admin.py:40hop 1hop 2 app/main.py:21 app/main.py:26hop 21 import app/main.py:211 import app/main.py:263 imports app/api/admin.py:10 app/api/chat.py:28 app/api/conversations.py:261 import app/api/admin.py:113 imports app/api/admin.py:40 app/api/chat.py:29 app/api/chat.py:185reads/writes app/api/conversations.py:13reads/writes2 imports app/ingestion/crawler.py:22 app/ingestion/run_ingest.py:25calls app/services/ollama_llm.py:31callsreads/writes app/services/milvus_store.py:14reads/writesreads/writes app/services/cache.py:18reads/writesapp app/__init__.py:1 app/config.py:1 app/main.py:1apphop 1 · 3 filesSRC 3›api app/api/admin.py:1 app/api/chat.py:1 app/api/conversations.py:1 app/api/models.py:1 app/api/skills.py:1 app/api/__init__.pyapihandler · FastAPI · 6 routesSRC 6›graph app/graph/build.py:1 app/graph/nodes.py:1 app/graph/prompts.py:1 app/graph/state.py:1 app/graph/__init__.pygraphhop 2 · 5 filesSRC 5›ingestion app/ingestion/crawler.py:1 app/ingestion/run_ingest.py:1 app/ingestion/__init__.pyingestionhop 1 · 3 filesSRC 3›services app/services/cache.py:1 app/services/citations.py:1 app/services/evaluation.py:1 app/services/milvus_store.py:1 app/services/ollama_llm.py:1 app/services/__init__.pyserviceshop 1 · 9 filesSRC 6›skills app/skills/__init__.py:1 app/skills/registry.py:1skillshop 2 · 2 filesSRC 2›OpenAI API app/services/ollama_llm.py:31OpenAI APIvia langchain_openaiSRC 1Milvus app/services/milvus_store.py:14Milvusvia pymilvusSRC 1Redis app/services/cache.py:18Redisvia redisSRC 1SQLite app/api/conversations.py:13SQLitevia sqlite3SRC 1
backend 1 cloud 1 database 3 module 5solid arrows are imports (count on hover); dashed arrows carry their verbevery box and arrow cites a source line; click one
Entry points
Data stores
  • … and 2 more
External APIs
Unresolved
  • python calls: 446 unresolved · e.g. Path(__file__).resolve, client.trace, ingestor.ingest_skill
  • python imports: 6 unresolved · e.g. huggingface_hub, pytest, transformers
  • python references: 3 unresolved · e.g. huggingface_hub, transformers

← app/api request flow

app component flow

3 components

3 uses app/main.py:20 app/main.py:49 app/main.py:86__init__ app/__init__.py:1__init__SRC 1config app/config.py:1configSRC 1›main app/main.py:1mainSRC 1›
component 3solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/api request flow

app/api component flow

6 components

2 uses app/api/admin.py:9 app/api/admin.py:651 use app/api/chat.py:276 uses app/api/conversations.py:19 app/api/conversations.py:87 app/api/conversations.py:122 app/api/conversations.py:126 app/api/conversations.py:146 app/api/conversations.py:1542 uses app/api/skills.py:7 app/api/skills.py:16__init__ app/api/__init__.py__init__SRC 1admin app/api/admin.py:1adminSRC 1›chat app/api/chat.py:1chatSRC 1›conversations app/api/conversations.py:1conversationsSRC 1›models app/api/models.py:1modelsSRC 1›skills app/api/skills.py:1skillsSRC 1
component 6solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/api component flow

admin code

2 functions

calls app/api/admin.py:53 app/api/admin.py:57 app/api/admin.py:59calls_merge app/api/admin.py:16_mergeSRC 1ingest app/api/admin.py:26ingestSRC 1
function 2solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/api component flow

chat code

6 functions

calls app/api/chat.py:98callscalls app/api/chat.py:95callscalls app/api/chat.py:179callscalls app/api/chat.py:177calls_resolve_skill app/api/chat.py:38_resolve_skillSRC 1_schedule_scoring app/api/chat.py:182_schedule_scoringSRC 1_within_rate_limit app/api/chat.py:56_within_rate_limitSRC 1chat app/api/chat.py:85chatSRC 1event_stream app/api/chat.py:121event_streamSRC 1health app/api/chat.py:70healthSRC 1
function 6solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/api component flow

conversations code

7 functions

calls app/api/conversations.py:91callscalls app/api/conversations.py:84callscalls app/api/conversations.py:158callscalls app/api/conversations.py:142callscalls app/api/conversations.py:119callscalls app/api/conversations.py:105calls_bucket_for app/api/conversations.py:66_bucket_forSRC 1_distinct_thread_ids app/api/conversations.py:56_distinct_thread_idsSRC 1_first_user_question app/api/conversations.py:48_first_user_questionSRC 1_split_thread app/api/conversations.py:42_split_threadSRC 1_summary app/api/conversations.py:76_summarySRC 1get_conversation app/api/conversations.py:130get_conversationSRC 1list_conversations app/api/conversations.py:98list_conversationsSRC 1
function 7solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/api component flow

models code

8 classes

ChatRequest app/api/models.py:8ChatRequestSRC 1ConversationBucket app/api/models.py:45ConversationBucketSRC 1ConversationDetail app/api/models.py:59ConversationDetailSRC 1ConversationListResponse app/api/models.py:50ConversationListResponseSRC 1ConversationMessage app/api/models.py:54ConversationMessageSRC 1ConversationSummary app/api/models.py:36ConversationSummarySRC 1IngestResponse app/api/models.py:71IngestResponseSRC 1SkillInfo app/api/models.py:30SkillInfoSRC 1
class 8every box and arrow cites a source line; click one

← app component flow

config code

1 class and 1 function

calls app/config.py:117callsSettings app/config.py:11SettingsSRC 1get_settings app/config.py:115get_settingsSRC 1
class 1 function 1solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/api request flow

app/graph component flow

5 components

2 uses app/graph/build.py:12 app/graph/build.py:551 use app/graph/build.py:131 use app/graph/nodes.py:181 use app/graph/nodes.py:181 use app/graph/nodes.py:20__init__ app/graph/__init__.py__init__SRC 1build app/graph/build.py:1buildSRC 1›nodes app/graph/nodes.py:1nodesSRC 1›prompts app/graph/prompts.py:1promptsSRC 1›state app/graph/state.py:1stateSRC 1›
component 5solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/graph component flow

build code

3 functions

calls app/graph/build.py:58 app/graph/build.py:59 app/graph/build.py:60 app/graph/build.py:61 app/graph/build.py:62 app/graph/build.py:63 app/graph/build.py:64 app/graph/build.py:65 app/graph/build.py:66 app/graph/build.py:67 app/graph/build.py:68 app/graph/build.py:69calls_timed app/graph/build.py:22_timedSRC 1wrapper app/graph/build.py:30wrapperSRC 1build_graph app/graph/build.py:47build_graphSRC 1
function 3solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/graph component flow

nodes code

1 class and 3 functions

RagNodes app/graph/nodes.py:36RagNodesSRC 1_status app/graph/nodes.py:28_statusSRC 1route_after_grade app/graph/nodes.py:278route_after_gradeSRC 1route_reflect app/graph/nodes.py:303route_reflectSRC 1
class 1 function 3every box and arrow cites a source line; click one

← app/graph component flow

prompts code

6 functions

answer_quality_user app/graph/prompts.py:100answer_quality_userSRC 1generation_user app/graph/prompts.py:61generation_userSRC 1groundedness_user app/graph/prompts.py:90groundedness_userSRC 1parse_yes_no app/graph/prompts.py:18parse_yes_noSRC 1relevance_user app/graph/prompts.py:47relevance_userSRC 1rewrite_user app/graph/prompts.py:111rewrite_userSRC 1
function 6every box and arrow cites a source line; click one

← app/graph component flow

state code

2 classes

Document app/graph/state.py:11DocumentSRC 1GraphState app/graph/state.py:18GraphStateSRC 1
class 2every box and arrow cites a source line; click one

← app/api request flow

app/ingestion component flow

3 components

5 uses app/ingestion/run_ingest.py:21 app/ingestion/run_ingest.py:46 app/ingestion/run_ingest.py:48 app/ingestion/run_ingest.py:60 app/ingestion/run_ingest.py:70__init__ app/ingestion/__init__.py__init__SRC 1crawler app/ingestion/crawler.py:1crawlerSRC 1›run_ingest app/ingestion/run_ingest.py:1run_ingestSRC 1›
component 3solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/ingestion component flow

crawler code

2 classes and 3 functions

IngestReport app/ingestion/crawler.py:33IngestReportSRC 1Ingestor app/ingestion/crawler.py:73IngestorSRC 1_host app/ingestion/crawler.py:27_hostSRC 1chunk_text app/ingestion/crawler.py:52chunk_textSRC 1load_topics app/ingestion/crawler.py:68load_topicsSRC 1
class 2 function 3every box and arrow cites a source line; click one

← app/ingestion component flow

run_ingest code

2 functions

calls app/ingestion/run_ingest.py:60 app/ingestion/run_ingest.py:65 app/ingestion/run_ingest.py:70 app/ingestion/run_ingest.py:73calls_merge app/ingestion/run_ingest.py:31_mergeSRC 1main app/ingestion/run_ingest.py:40mainSRC 1
function 2solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app component flow

main code

1 class and 3 functions

calls app/main.py:74callscalls app/main.py:89callsRuntime app/main.py:32RuntimeSRC 1build_runtime app/main.py:42build_runtimeSRC 1create_app app/main.py:95create_appSRC 1lifespan app/main.py:85lifespanSRC 1
class 1 function 3solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/api request flow

app/services component flow

9 components

2 uses app/services/evaluation.py:24 app/services/evaluation.py:742 uses app/services/evaluation.py:204 app/services/evaluation.py:2121 use app/services/websearch.py:26__init__ app/services/__init__.py__init__SRC 1cache app/services/cache.py:1cacheSRC 1›citations app/services/citations.py:1citationsSRC 1›evaluation app/services/evaluation.py:1evaluationSRC 1›milvus_store app/services/milvus_store.py:1milvus_storeSRC 1›ollama_llm app/services/ollama_llm.py:1ollama_llmSRC 1›reranker app/services/reranker.py:1rerankerSRC 1›tracing app/services/tracing.py:1tracingSRC 1›websearch app/services/websearch.py:1websearchSRC 1›
component 9solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/services component flow

cache code

1 class and 2 functions

CacheService app/services/cache.py:31CacheServiceSRC 1_hash app/services/cache.py:27_hashSRC 1_key app/services/cache.py:23_keySRC 1
class 1 function 2every box and arrow cites a source line; click one

← app/services component flow

citations code

3 functions

calls app/services/citations.py:39 app/services/citations.py:44callscalls app/services/citations.py:61calls_encode app/services/citations.py:17_encodeSRC 1build_text_fragment app/services/citations.py:23build_text_fragmentSRC 1citation_link app/services/citations.py:49citation_linkSRC 1
function 3solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/services component flow

evaluation code

1 class and 7 functions

calls app/services/evaluation.py:74callscalls app/services/evaluation.py:206callscalls app/services/evaluation.py:214callscalls app/services/evaluation.py:213callscalls app/services/evaluation.py:118callscalls app/services/evaluation.py:151callscalls app/services/evaluation.py:179calls_geval_metrics app/services/evaluation.py:77_geval_metricsSRC 1_metric_name app/services/evaluation.py:154_metric_nameSRC 1build_judge app/services/evaluation.py:36build_judgeSRC 1_LangchainJudge app/services/evaluation.py:40_LangchainJudgeSRC 1evaluate_and_score app/services/evaluation.py:194evaluate_and_scoreSRC 1live_metrics app/services/evaluation.py:112live_metricsSRC 1offline_metrics app/services/evaluation.py:129offline_metricsSRC 1score_test_case app/services/evaluation.py:168score_test_caseSRC 1
class 1 function 7solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/services component flow

milvus_store code

1 class and 4 functions

calls app/services/milvus_store.py:65callsMilvusStore app/services/milvus_store.py:70MilvusStoreSRC 1_quote_list app/services/milvus_store.py:51_quote_listSRC 1chunk_id app/services/milvus_store.py:19chunk_idSRC 1content_hash app/services/milvus_store.py:25content_hashSRC 1source_filter app/services/milvus_store.py:56source_filterSRC 1
class 1 function 4solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/services component flow

ollama_llm code

3 functions

build_chat_llm app/services/ollama_llm.py:21build_chat_llmSRC 1build_embeddings app/services/ollama_llm.py:76build_embeddingsSRC 1build_eval_llm app/services/ollama_llm.py:49build_eval_llmSRC 1
function 3every box and arrow cites a source line; click one

← app/services component flow

reranker code

2 classes

RerankCandidate app/services/reranker.py:16RerankCandidateSRC 1Reranker app/services/reranker.py:23RerankerSRC 1
class 2every box and arrow cites a source line; click one

← app/services component flow

tracing code

4 functions

calls app/services/tracing.py:66callscalls app/services/tracing.py:84callscalls app/services/tracing.py:28callsattach_citations app/services/tracing.py:47attach_citationsSRC 1langfuse_client app/services/tracing.py:82langfuse_clientSRC 1make_chat_handler app/services/tracing.py:22make_chat_handlerSRC 1tracing_enabled app/services/tracing.py:17tracing_enabledSRC 1
function 4solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/services component flow

websearch code

2 classes

WebDocument app/services/websearch.py:32WebDocumentSRC 1WebSearchService app/services/websearch.py:38WebSearchServiceSRC 1
class 2every box and arrow cites a source line; click one

← app/api request flow

app/skills component flow

2 components

1 use app/skills/__init__.py:3__init__ app/skills/__init__.py:1__init__SRC 1registry app/skills/registry.py:1registrySRC 1›
component 2solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/skills component flow

registry code

2 classes and 2 functions

Skill app/skills/registry.py:25SkillSRC 1SkillRegistry app/skills/registry.py:65SkillRegistrySRC 1_resolve_skills_dir app/skills/registry.py:57_resolve_skills_dirSRC 1parse_frontmatter app/skills/registry.py:39parse_frontmatterSRC 1
class 2 function 2every box and arrow cites a source line; click one

← app component flow

config code

1 class and 1 function

3 uses app/main.py:20 app/main.py:49 app/main.py:86__init__ app/__init__.py:1__init__SRC 1main app/main.py:1mainSRC 1›config app/config.py:1config×calls app/config.py:117callsSettings app/config.py:11SettingsSRC 1get_settings app/config.py:115get_settingsSRC 1
class 1 function 1solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app component flow

main code

1 class and 3 functions

3 uses app/main.py:20 app/main.py:49 app/main.py:86__init__ app/__init__.py:1__init__SRC 1config app/config.py:1configSRC 1›main app/main.py:1main×calls app/main.py:74callscalls app/main.py:89callsRuntime app/main.py:32RuntimeSRC 1build_runtime app/main.py:42build_runtimeSRC 1create_app app/main.py:95create_appSRC 1lifespan app/main.py:85lifespanSRC 1
class 1 function 3solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/api component flow

admin code

2 functions

2 uses app/api/admin.py:9 app/api/admin.py:651 use app/api/chat.py:276 uses app/api/conversations.py:19 app/api/conversations.py:87 app/api/conversations.py:122 app/api/conversations.py:126 app/api/conversations.py:146 app/api/conversations.py:1542 uses app/api/skills.py:7 app/api/skills.py:16__init__ app/api/__init__.py__init__SRC 1chat app/api/chat.py:1chatSRC 1›conversations app/api/conversations.py:1conversationsSRC 1›models app/api/models.py:1modelsSRC 1›skills app/api/skills.py:1skillsSRC 1admin app/api/admin.py:1admin×calls app/api/admin.py:53 app/api/admin.py:57 app/api/admin.py:59calls_merge app/api/admin.py:16_mergeSRC 1ingest app/api/admin.py:26ingestSRC 1
function 2solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/api component flow

chat code

6 functions

2 uses app/api/admin.py:9 app/api/admin.py:651 use app/api/chat.py:276 uses app/api/conversations.py:19 app/api/conversations.py:87 app/api/conversations.py:122 app/api/conversations.py:126 app/api/conversations.py:146 app/api/conversations.py:1542 uses app/api/skills.py:7 app/api/skills.py:16__init__ app/api/__init__.py__init__SRC 1admin app/api/admin.py:1adminSRC 1›conversations app/api/conversations.py:1conversationsSRC 1›models app/api/models.py:1modelsSRC 1›skills app/api/skills.py:1skillsSRC 1chat app/api/chat.py:1chat×calls app/api/chat.py:98callscalls app/api/chat.py:95callscalls app/api/chat.py:179callscalls app/api/chat.py:177calls_resolve_skill app/api/chat.py:38_resolve_skillSRC 1_schedule_scoring app/api/chat.py:182_schedule_scoringSRC 1_within_rate_limit app/api/chat.py:56_within_rate_limitSRC 1chat app/api/chat.py:85chatSRC 1event_stream app/api/chat.py:121event_streamSRC 1health app/api/chat.py:70healthSRC 1
function 6solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/api component flow

conversations code

7 functions

2 uses app/api/admin.py:9 app/api/admin.py:651 use app/api/chat.py:276 uses app/api/conversations.py:19 app/api/conversations.py:87 app/api/conversations.py:122 app/api/conversations.py:126 app/api/conversations.py:146 app/api/conversations.py:1542 uses app/api/skills.py:7 app/api/skills.py:16__init__ app/api/__init__.py__init__SRC 1admin app/api/admin.py:1adminSRC 1›chat app/api/chat.py:1chatSRC 1›models app/api/models.py:1modelsSRC 1›skills app/api/skills.py:1skillsSRC 1conversations app/api/conversations.py:1conversations×calls app/api/conversations.py:91callscalls app/api/conversations.py:84callscalls app/api/conversations.py:158callscalls app/api/conversations.py:142callscalls app/api/conversations.py:119callscalls app/api/conversations.py:105calls_bucket_for app/api/conversations.py:66_bucket_forSRC 1_distinct_thread_ids app/api/conversations.py:56_distinct_thread_idsSRC 1_first_user_question app/api/conversations.py:48_first_user_questionSRC 1_split_thread app/api/conversations.py:42_split_threadSRC 1_summary app/api/conversations.py:76_summarySRC 1get_conversation app/api/conversations.py:130get_conversationSRC 1list_conversations app/api/conversations.py:98list_conversationsSRC 1
function 7solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/api component flow

models code

8 classes

2 uses app/api/admin.py:9 app/api/admin.py:651 use app/api/chat.py:276 uses app/api/conversations.py:19 app/api/conversations.py:87 app/api/conversations.py:122 app/api/conversations.py:126 app/api/conversations.py:146 app/api/conversations.py:1542 uses app/api/skills.py:7 app/api/skills.py:16__init__ app/api/__init__.py__init__SRC 1admin app/api/admin.py:1adminSRC 1›chat app/api/chat.py:1chatSRC 1›conversations app/api/conversations.py:1conversationsSRC 1›skills app/api/skills.py:1skillsSRC 1models app/api/models.py:1models×ChatRequest app/api/models.py:8ChatRequestSRC 1ConversationBucket app/api/models.py:45ConversationBucketSRC 1ConversationDetail app/api/models.py:59ConversationDetailSRC 1ConversationListResponse app/api/models.py:50ConversationListResponseSRC 1ConversationMessage app/api/models.py:54ConversationMessageSRC 1ConversationSummary app/api/models.py:36ConversationSummarySRC 1IngestResponse app/api/models.py:71IngestResponseSRC 1SkillInfo app/api/models.py:30SkillInfoSRC 1
class 8every box and arrow cites a source line; click one

← app/graph component flow

build code

3 functions

2 uses app/graph/build.py:12 app/graph/build.py:551 use app/graph/build.py:131 use app/graph/nodes.py:181 use app/graph/nodes.py:181 use app/graph/nodes.py:20__init__ app/graph/__init__.py__init__SRC 1nodes app/graph/nodes.py:1nodesSRC 1›prompts app/graph/prompts.py:1promptsSRC 1›state app/graph/state.py:1stateSRC 1›build app/graph/build.py:1build×calls app/graph/build.py:58 app/graph/build.py:59 app/graph/build.py:60 app/graph/build.py:61 app/graph/build.py:62 app/graph/build.py:63 app/graph/build.py:64 app/graph/build.py:65 app/graph/build.py:66 app/graph/build.py:67 app/graph/build.py:68 app/graph/build.py:69calls_timed app/graph/build.py:22_timedSRC 1wrapper app/graph/build.py:30wrapperSRC 1build_graph app/graph/build.py:47build_graphSRC 1
function 3solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/graph component flow

nodes code

1 class and 3 functions

2 uses app/graph/build.py:12 app/graph/build.py:551 use app/graph/build.py:131 use app/graph/nodes.py:181 use app/graph/nodes.py:181 use app/graph/nodes.py:20__init__ app/graph/__init__.py__init__SRC 1build app/graph/build.py:1buildSRC 1›prompts app/graph/prompts.py:1promptsSRC 1›state app/graph/state.py:1stateSRC 1›nodes app/graph/nodes.py:1nodes×RagNodes app/graph/nodes.py:36RagNodesSRC 1_status app/graph/nodes.py:28_statusSRC 1route_after_grade app/graph/nodes.py:278route_after_gradeSRC 1route_reflect app/graph/nodes.py:303route_reflectSRC 1
class 1 function 3every box and arrow cites a source line; click one

← app/graph component flow

prompts code

6 functions

2 uses app/graph/build.py:12 app/graph/build.py:551 use app/graph/build.py:131 use app/graph/nodes.py:181 use app/graph/nodes.py:181 use app/graph/nodes.py:20__init__ app/graph/__init__.py__init__SRC 1build app/graph/build.py:1buildSRC 1›nodes app/graph/nodes.py:1nodesSRC 1›state app/graph/state.py:1stateSRC 1›prompts app/graph/prompts.py:1prompts×answer_quality_user app/graph/prompts.py:100answer_quality_userSRC 1generation_user app/graph/prompts.py:61generation_userSRC 1groundedness_user app/graph/prompts.py:90groundedness_userSRC 1parse_yes_no app/graph/prompts.py:18parse_yes_noSRC 1relevance_user app/graph/prompts.py:47relevance_userSRC 1rewrite_user app/graph/prompts.py:111rewrite_userSRC 1
function 6every box and arrow cites a source line; click one

← app/graph component flow

state code

2 classes

2 uses app/graph/build.py:12 app/graph/build.py:551 use app/graph/build.py:131 use app/graph/nodes.py:181 use app/graph/nodes.py:181 use app/graph/nodes.py:20__init__ app/graph/__init__.py__init__SRC 1build app/graph/build.py:1buildSRC 1›nodes app/graph/nodes.py:1nodesSRC 1›prompts app/graph/prompts.py:1promptsSRC 1›state app/graph/state.py:1state×Document app/graph/state.py:11DocumentSRC 1GraphState app/graph/state.py:18GraphStateSRC 1
class 2every box and arrow cites a source line; click one

← app/ingestion component flow

crawler code

2 classes and 3 functions

5 uses app/ingestion/run_ingest.py:21 app/ingestion/run_ingest.py:46 app/ingestion/run_ingest.py:48 app/ingestion/run_ingest.py:60 app/ingestion/run_ingest.py:70__init__ app/ingestion/__init__.py__init__SRC 1run_ingest app/ingestion/run_ingest.py:1run_ingestSRC 1›crawler app/ingestion/crawler.py:1crawler×IngestReport app/ingestion/crawler.py:33IngestReportSRC 1Ingestor app/ingestion/crawler.py:73IngestorSRC 1_host app/ingestion/crawler.py:27_hostSRC 1chunk_text app/ingestion/crawler.py:52chunk_textSRC 1load_topics app/ingestion/crawler.py:68load_topicsSRC 1
class 2 function 3every box and arrow cites a source line; click one

← app/ingestion component flow

run_ingest code

2 functions

5 uses app/ingestion/run_ingest.py:21 app/ingestion/run_ingest.py:46 app/ingestion/run_ingest.py:48 app/ingestion/run_ingest.py:60 app/ingestion/run_ingest.py:70__init__ app/ingestion/__init__.py__init__SRC 1crawler app/ingestion/crawler.py:1crawlerSRC 1›run_ingest app/ingestion/run_ingest.py:1run_ingest×calls app/ingestion/run_ingest.py:60 app/ingestion/run_ingest.py:65 app/ingestion/run_ingest.py:70 app/ingestion/run_ingest.py:73calls_merge app/ingestion/run_ingest.py:31_mergeSRC 1main app/ingestion/run_ingest.py:40mainSRC 1
function 2solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/services component flow

cache code

1 class and 2 functions

2 uses app/services/evaluation.py:24 app/services/evaluation.py:742 uses app/services/evaluation.py:204 app/services/evaluation.py:2121 use app/services/websearch.py:26__init__ app/services/__init__.py__init__SRC 1citations app/services/citations.py:1citationsSRC 1›evaluation app/services/evaluation.py:1evaluationSRC 1›milvus_store app/services/milvus_store.py:1milvus_storeSRC 1›ollama_llm app/services/ollama_llm.py:1ollama_llmSRC 1›reranker app/services/reranker.py:1rerankerSRC 1›tracing app/services/tracing.py:1tracingSRC 1›websearch app/services/websearch.py:1websearchSRC 1›cache app/services/cache.py:1cache×CacheService app/services/cache.py:31CacheServiceSRC 1_hash app/services/cache.py:27_hashSRC 1_key app/services/cache.py:23_keySRC 1
class 1 function 2every box and arrow cites a source line; click one

← app/services component flow

citations code

3 functions

2 uses app/services/evaluation.py:24 app/services/evaluation.py:742 uses app/services/evaluation.py:204 app/services/evaluation.py:2121 use app/services/websearch.py:26__init__ app/services/__init__.py__init__SRC 1cache app/services/cache.py:1cacheSRC 1›evaluation app/services/evaluation.py:1evaluationSRC 1›milvus_store app/services/milvus_store.py:1milvus_storeSRC 1›ollama_llm app/services/ollama_llm.py:1ollama_llmSRC 1›reranker app/services/reranker.py:1rerankerSRC 1›tracing app/services/tracing.py:1tracingSRC 1›websearch app/services/websearch.py:1websearchSRC 1›citations app/services/citations.py:1citations×calls app/services/citations.py:39 app/services/citations.py:44callscalls app/services/citations.py:61calls_encode app/services/citations.py:17_encodeSRC 1build_text_fragment app/services/citations.py:23build_text_fragmentSRC 1citation_link app/services/citations.py:49citation_linkSRC 1
function 3solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/services component flow

evaluation code

1 class and 7 functions

2 uses app/services/evaluation.py:24 app/services/evaluation.py:742 uses app/services/evaluation.py:204 app/services/evaluation.py:2121 use app/services/websearch.py:26__init__ app/services/__init__.py__init__SRC 1cache app/services/cache.py:1cacheSRC 1›citations app/services/citations.py:1citationsSRC 1›milvus_store app/services/milvus_store.py:1milvus_storeSRC 1›ollama_llm app/services/ollama_llm.py:1ollama_llmSRC 1›reranker app/services/reranker.py:1rerankerSRC 1›tracing app/services/tracing.py:1tracingSRC 1›websearch app/services/websearch.py:1websearchSRC 1›evaluation app/services/evaluation.py:1evaluation×calls app/services/evaluation.py:74callscalls app/services/evaluation.py:206callscalls app/services/evaluation.py:214callscalls app/services/evaluation.py:213callscalls app/services/evaluation.py:118callscalls app/services/evaluation.py:151callscalls app/services/evaluation.py:179calls_geval_metrics app/services/evaluation.py:77_geval_metricsSRC 1_metric_name app/services/evaluation.py:154_metric_nameSRC 1build_judge app/services/evaluation.py:36build_judgeSRC 1_LangchainJudge app/services/evaluation.py:40_LangchainJudgeSRC 1evaluate_and_score app/services/evaluation.py:194evaluate_and_scoreSRC 1live_metrics app/services/evaluation.py:112live_metricsSRC 1offline_metrics app/services/evaluation.py:129offline_metricsSRC 1score_test_case app/services/evaluation.py:168score_test_caseSRC 1
class 1 function 7solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/services component flow

milvus_store code

1 class and 4 functions

2 uses app/services/evaluation.py:24 app/services/evaluation.py:742 uses app/services/evaluation.py:204 app/services/evaluation.py:2121 use app/services/websearch.py:26__init__ app/services/__init__.py__init__SRC 1cache app/services/cache.py:1cacheSRC 1›citations app/services/citations.py:1citationsSRC 1›evaluation app/services/evaluation.py:1evaluationSRC 1›ollama_llm app/services/ollama_llm.py:1ollama_llmSRC 1›reranker app/services/reranker.py:1rerankerSRC 1›tracing app/services/tracing.py:1tracingSRC 1›websearch app/services/websearch.py:1websearchSRC 1›milvus_store app/services/milvus_store.py:1milvus_store×calls app/services/milvus_store.py:65callsMilvusStore app/services/milvus_store.py:70MilvusStoreSRC 1_quote_list app/services/milvus_store.py:51_quote_listSRC 1chunk_id app/services/milvus_store.py:19chunk_idSRC 1content_hash app/services/milvus_store.py:25content_hashSRC 1source_filter app/services/milvus_store.py:56source_filterSRC 1
class 1 function 4solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/services component flow

ollama_llm code

3 functions

2 uses app/services/evaluation.py:24 app/services/evaluation.py:742 uses app/services/evaluation.py:204 app/services/evaluation.py:2121 use app/services/websearch.py:26__init__ app/services/__init__.py__init__SRC 1cache app/services/cache.py:1cacheSRC 1›citations app/services/citations.py:1citationsSRC 1›evaluation app/services/evaluation.py:1evaluationSRC 1›milvus_store app/services/milvus_store.py:1milvus_storeSRC 1›reranker app/services/reranker.py:1rerankerSRC 1›tracing app/services/tracing.py:1tracingSRC 1›websearch app/services/websearch.py:1websearchSRC 1›ollama_llm app/services/ollama_llm.py:1ollama_llm×build_chat_llm app/services/ollama_llm.py:21build_chat_llmSRC 1build_embeddings app/services/ollama_llm.py:76build_embeddingsSRC 1build_eval_llm app/services/ollama_llm.py:49build_eval_llmSRC 1
function 3every box and arrow cites a source line; click one

← app/services component flow

reranker code

2 classes

2 uses app/services/evaluation.py:24 app/services/evaluation.py:742 uses app/services/evaluation.py:204 app/services/evaluation.py:2121 use app/services/websearch.py:26__init__ app/services/__init__.py__init__SRC 1cache app/services/cache.py:1cacheSRC 1›citations app/services/citations.py:1citationsSRC 1›evaluation app/services/evaluation.py:1evaluationSRC 1›milvus_store app/services/milvus_store.py:1milvus_storeSRC 1›ollama_llm app/services/ollama_llm.py:1ollama_llmSRC 1›tracing app/services/tracing.py:1tracingSRC 1›websearch app/services/websearch.py:1websearchSRC 1›reranker app/services/reranker.py:1reranker×RerankCandidate app/services/reranker.py:16RerankCandidateSRC 1Reranker app/services/reranker.py:23RerankerSRC 1
class 2every box and arrow cites a source line; click one

← app/services component flow

tracing code

4 functions

2 uses app/services/evaluation.py:24 app/services/evaluation.py:742 uses app/services/evaluation.py:204 app/services/evaluation.py:2121 use app/services/websearch.py:26__init__ app/services/__init__.py__init__SRC 1cache app/services/cache.py:1cacheSRC 1›citations app/services/citations.py:1citationsSRC 1›evaluation app/services/evaluation.py:1evaluationSRC 1›milvus_store app/services/milvus_store.py:1milvus_storeSRC 1›ollama_llm app/services/ollama_llm.py:1ollama_llmSRC 1›reranker app/services/reranker.py:1rerankerSRC 1›websearch app/services/websearch.py:1websearchSRC 1›tracing app/services/tracing.py:1tracing×calls app/services/tracing.py:66callscalls app/services/tracing.py:84callscalls app/services/tracing.py:28callsattach_citations app/services/tracing.py:47attach_citationsSRC 1langfuse_client app/services/tracing.py:82langfuse_clientSRC 1make_chat_handler app/services/tracing.py:22make_chat_handlerSRC 1tracing_enabled app/services/tracing.py:17tracing_enabledSRC 1
function 4solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/services component flow

websearch code

2 classes

2 uses app/services/evaluation.py:24 app/services/evaluation.py:742 uses app/services/evaluation.py:204 app/services/evaluation.py:2121 use app/services/websearch.py:26__init__ app/services/__init__.py__init__SRC 1cache app/services/cache.py:1cacheSRC 1›citations app/services/citations.py:1citationsSRC 1›evaluation app/services/evaluation.py:1evaluationSRC 1›milvus_store app/services/milvus_store.py:1milvus_storeSRC 1›ollama_llm app/services/ollama_llm.py:1ollama_llmSRC 1›reranker app/services/reranker.py:1rerankerSRC 1›tracing app/services/tracing.py:1tracingSRC 1›websearch app/services/websearch.py:1websearch×WebDocument app/services/websearch.py:32WebDocumentSRC 1WebSearchService app/services/websearch.py:38WebSearchServiceSRC 1
class 2every box and arrow cites a source line; click one

← app/skills component flow

registry code

2 classes and 2 functions

1 use app/skills/__init__.py:3__init__ app/skills/__init__.py:1__init__SRC 1registry app/skills/registry.py:1registry×Skill app/skills/registry.py:25SkillSRC 1SkillRegistry app/skills/registry.py:65SkillRegistrySRC 1_resolve_skills_dir app/skills/registry.py:57_resolve_skills_dirSRC 1parse_frontmatter app/skills/registry.py:39parse_frontmatterSRC 1
class 2 function 2every box and arrow cites a source line; click one

← app/api request flow

app component flow

3 components

handler app/api/admin.py:25handlerhop 1 app/api/admin.py:10 app/api/admin.py:11 app/api/admin.py:40hop 1hop 2 app/main.py:21 app/main.py:26hop 21 import app/main.py:211 import app/main.py:263 imports app/api/admin.py:10 app/api/chat.py:28 app/api/conversations.py:261 import app/api/admin.py:113 imports app/api/admin.py:40 app/api/chat.py:29 app/api/chat.py:185reads/writes app/api/conversations.py:13reads/writes2 imports app/ingestion/crawler.py:22 app/ingestion/run_ingest.py:25calls app/services/ollama_llm.py:31callsreads/writes app/services/milvus_store.py:14reads/writesreads/writes app/services/cache.py:18reads/writesapi app/api/admin.py:1 app/api/chat.py:1 app/api/conversations.py:1 app/api/models.py:1 app/api/skills.py:1 app/api/__init__.pyapihandler · FastAPI · 6 routesSRC 6›graph app/graph/build.py:1 app/graph/nodes.py:1 app/graph/prompts.py:1 app/graph/state.py:1 app/graph/__init__.pygraphhop 2 · 5 filesSRC 5›ingestion app/ingestion/crawler.py:1 app/ingestion/run_ingest.py:1 app/ingestion/__init__.pyingestionhop 1 · 3 filesSRC 3›services app/services/cache.py:1 app/services/citations.py:1 app/services/evaluation.py:1 app/services/milvus_store.py:1 app/services/ollama_llm.py:1 app/services/__init__.pyserviceshop 1 · 9 filesSRC 6›skills app/skills/__init__.py:1 app/skills/registry.py:1skillshop 2 · 2 filesSRC 2›OpenAI API app/services/ollama_llm.py:31OpenAI APIvia langchain_openaiSRC 1Milvus app/services/milvus_store.py:14Milvusvia pymilvusSRC 1Redis app/services/cache.py:18Redisvia redisSRC 1SQLite app/api/conversations.py:13SQLitevia sqlite3SRC 1app app/__init__.py:1 app/config.py:1 app/main.py:1app×3 uses app/main.py:20 app/main.py:49 app/main.py:86__init__ app/__init__.py:1__init__SRC 1config app/config.py:1configSRC 1›main app/main.py:1mainSRC 1›
component 3solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/api request flow

app/api component flow

6 components

handler app/api/admin.py:25handlerhop 1 app/api/admin.py:10 app/api/admin.py:11 app/api/admin.py:40hop 1hop 2 app/main.py:21 app/main.py:26hop 21 import app/main.py:211 import app/main.py:263 imports app/api/admin.py:10 app/api/chat.py:28 app/api/conversations.py:261 import app/api/admin.py:113 imports app/api/admin.py:40 app/api/chat.py:29 app/api/chat.py:185reads/writes app/api/conversations.py:13reads/writes2 imports app/ingestion/crawler.py:22 app/ingestion/run_ingest.py:25calls app/services/ollama_llm.py:31callsreads/writes app/services/milvus_store.py:14reads/writesreads/writes app/services/cache.py:18app app/__init__.py:1 app/config.py:1 app/main.py:1apphop 1 · 3 filesSRC 3›graph app/graph/build.py:1 app/graph/nodes.py:1 app/graph/prompts.py:1 app/graph/state.py:1 app/graph/__init__.pygraphhop 2 · 5 filesSRC 5›ingestion app/ingestion/crawler.py:1 app/ingestion/run_ingest.py:1 app/ingestion/__init__.pyingestionhop 1 · 3 filesSRC 3›services app/services/cache.py:1 app/services/citations.py:1 app/services/evaluation.py:1 app/services/milvus_store.py:1 app/services/ollama_llm.py:1 app/services/__init__.pyserviceshop 1 · 9 filesSRC 6›skills app/skills/__init__.py:1 app/skills/registry.py:1skillshop 2 · 2 filesSRC 2›OpenAI API app/services/ollama_llm.py:31OpenAI APIvia langchain_openaiSRC 1Milvus app/services/milvus_store.py:14Milvusvia pymilvusSRC 1Redis app/services/cache.py:18Redisvia redisSRC 1SQLite app/api/conversations.py:13SQLitevia sqlite3SRC 1api app/api/admin.py:1 app/api/chat.py:1 app/api/conversations.py:1 app/api/models.py:1 app/api/skills.py:1 app/api/__init__.pyapi×2 uses app/api/admin.py:9 app/api/admin.py:651 use app/api/chat.py:276 uses app/api/conversations.py:19 app/api/conversations.py:87 app/api/conversations.py:122 app/api/conversations.py:126 app/api/conversations.py:146 app/api/conversations.py:1542 uses app/api/skills.py:7 app/api/skills.py:16__init__ app/api/__init__.py__init__SRC 1admin app/api/admin.py:1adminSRC 1›chat app/api/chat.py:1chatSRC 1›conversations app/api/conversations.py:1conversationsSRC 1›models app/api/models.py:1modelsSRC 1›skills app/api/skills.py:1skillsSRC 1
component 6solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/api request flow

app/graph component flow

5 components

handler app/api/admin.py:25handlerhop 1 app/api/admin.py:10 app/api/admin.py:11 app/api/admin.py:40hop 1hop 2 app/main.py:21 app/main.py:26hop 21 import app/main.py:211 import app/main.py:263 imports app/api/admin.py:10 app/api/chat.py:28 app/api/conversations.py:261 import app/api/admin.py:113 imports app/api/admin.py:40 app/api/chat.py:29 app/api/chat.py:185reads/writes app/api/conversations.py:13reads/writes2 imports app/ingestion/crawler.py:22 app/ingestion/run_ingest.py:25calls app/services/ollama_llm.py:31callsreads/writes app/services/milvus_store.py:14reads/writes app/services/cache.py:18app app/__init__.py:1 app/config.py:1 app/main.py:1apphop 1 · 3 filesSRC 3›api app/api/admin.py:1 app/api/chat.py:1 app/api/conversations.py:1 app/api/models.py:1 app/api/skills.py:1 app/api/__init__.pyapihandler · FastAPI · 6 routesSRC 6›ingestion app/ingestion/crawler.py:1 app/ingestion/run_ingest.py:1 app/ingestion/__init__.pyingestionhop 1 · 3 filesSRC 3›services app/services/cache.py:1 app/services/citations.py:1 app/services/evaluation.py:1 app/services/milvus_store.py:1 app/services/ollama_llm.py:1 app/services/__init__.pyserviceshop 1 · 9 filesSRC 6›skills app/skills/__init__.py:1 app/skills/registry.py:1skillshop 2 · 2 filesSRC 2›OpenAI API app/services/ollama_llm.py:31OpenAI APIvia langchain_openaiSRC 1Milvus app/services/milvus_store.py:14Milvusvia pymilvusSRC 1Redis app/services/cache.py:18Redisvia redisSRC 1SQLite app/api/conversations.py:13SQLitevia sqlite3SRC 1graph app/graph/build.py:1 app/graph/nodes.py:1 app/graph/prompts.py:1 app/graph/state.py:1 app/graph/__init__.pygraph×2 uses app/graph/build.py:12 app/graph/build.py:551 use app/graph/build.py:131 use app/graph/nodes.py:181 use app/graph/nodes.py:181 use app/graph/nodes.py:20__init__ app/graph/__init__.py__init__SRC 1build app/graph/build.py:1buildSRC 1›nodes app/graph/nodes.py:1nodesSRC 1›prompts app/graph/prompts.py:1promptsSRC 1›state app/graph/state.py:1stateSRC 1›
component 5solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/api request flow

app/ingestion component flow

3 components

handler app/api/admin.py:25handlerhop 1 app/api/admin.py:10 app/api/admin.py:11 app/api/admin.py:40hop 1hop 2 app/main.py:21 app/main.py:26hop 21 import app/main.py:211 import app/main.py:263 imports app/api/admin.py:10 app/api/chat.py:28 app/api/conversations.py:261 import app/api/admin.py:113 imports app/api/admin.py:40 app/api/chat.py:29 app/api/chat.py:185reads/writes app/api/conversations.py:132 imports app/ingestion/crawler.py:22 app/ingestion/run_ingest.py:25calls app/services/ollama_llm.py:31callsreads/writes app/services/milvus_store.py:14reads/writesreads/writes app/services/cache.py:18reads/writesapp app/__init__.py:1 app/config.py:1 app/main.py:1apphop 1 · 3 filesSRC 3›api app/api/admin.py:1 app/api/chat.py:1 app/api/conversations.py:1 app/api/models.py:1 app/api/skills.py:1 app/api/__init__.pyapihandler · FastAPI · 6 routesSRC 6›graph app/graph/build.py:1 app/graph/nodes.py:1 app/graph/prompts.py:1 app/graph/state.py:1 app/graph/__init__.pygraphhop 2 · 5 filesSRC 5›services app/services/cache.py:1 app/services/citations.py:1 app/services/evaluation.py:1 app/services/milvus_store.py:1 app/services/ollama_llm.py:1 app/services/__init__.pyserviceshop 1 · 9 filesSRC 6›skills app/skills/__init__.py:1 app/skills/registry.py:1skillshop 2 · 2 filesSRC 2›OpenAI API app/services/ollama_llm.py:31OpenAI APIvia langchain_openaiSRC 1Milvus app/services/milvus_store.py:14Milvusvia pymilvusSRC 1Redis app/services/cache.py:18Redisvia redisSRC 1SQLite app/api/conversations.py:13SQLitevia sqlite3SRC 1ingestion app/ingestion/crawler.py:1 app/ingestion/run_ingest.py:1 app/ingestion/__init__.pyingestion×5 uses app/ingestion/run_ingest.py:21 app/ingestion/run_ingest.py:46 app/ingestion/run_ingest.py:48 app/ingestion/run_ingest.py:60 app/ingestion/run_ingest.py:70__init__ app/ingestion/__init__.py__init__SRC 1crawler app/ingestion/crawler.py:1crawlerSRC 1›run_ingest app/ingestion/run_ingest.py:1run_ingestSRC 1›
component 3solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/api request flow

app/services component flow

9 components

handler app/api/admin.py:25handlerhop 1 app/api/admin.py:10 app/api/admin.py:11 app/api/admin.py:40hop 1hop 2 app/main.py:21 app/main.py:26hop 21 import app/main.py:211 import app/main.py:263 imports app/api/admin.py:10 app/api/chat.py:28 app/api/conversations.py:261 import app/api/admin.py:113 imports app/api/admin.py:40 app/api/chat.py:29 app/api/chat.py:185reads/writes app/api/conversations.py:13reads/writes2 imports app/ingestion/crawler.py:22 app/ingestion/run_ingest.py:25calls app/services/ollama_llm.py:31callsreads/writes app/services/milvus_store.py:14reads/writesreads/writes app/services/cache.py:18reads/writesapp app/__init__.py:1 app/config.py:1 app/main.py:1apphop 1 · 3 filesSRC 3›api app/api/admin.py:1 app/api/chat.py:1 app/api/conversations.py:1 app/api/models.py:1 app/api/skills.py:1 app/api/__init__.pyapihandler · FastAPI · 6 routesSRC 6›graph app/graph/build.py:1 app/graph/nodes.py:1 app/graph/prompts.py:1 app/graph/state.py:1 app/graph/__init__.pygraphhop 2 · 5 filesSRC 5›ingestion app/ingestion/crawler.py:1 app/ingestion/run_ingest.py:1 app/ingestion/__init__.pyingestionhop 1 · 3 filesSRC 3›skills app/skills/__init__.py:1 app/skills/registry.py:1skillshop 2 · 2 filesSRC 2›OpenAI API app/services/ollama_llm.py:31OpenAI APIvia langchain_openaiSRC 1Milvus app/services/milvus_store.py:14Milvusvia pymilvusSRC 1Redis app/services/cache.py:18Redisvia redisSRC 1SQLite app/api/conversations.py:13SQLitevia sqlite3SRC 1services app/services/cache.py:1 app/services/citations.py:1 app/services/evaluation.py:1 app/services/milvus_store.py:1 app/services/ollama_llm.py:1 app/services/__init__.pyservices×2 uses app/services/evaluation.py:24 app/services/evaluation.py:742 uses app/services/evaluation.py:204 app/services/evaluation.py:2121 use app/services/websearch.py:26__init__ app/services/__init__.py__init__SRC 1cache app/services/cache.py:1cacheSRC 1›citations app/services/citations.py:1citationsSRC 1›evaluation app/services/evaluation.py:1evaluationSRC 1›milvus_store app/services/milvus_store.py:1milvus_storeSRC 1›ollama_llm app/services/ollama_llm.py:1ollama_llmSRC 1›reranker app/services/reranker.py:1rerankerSRC 1›tracing app/services/tracing.py:1tracingSRC 1›websearch app/services/websearch.py:1websearchSRC 1›
component 9solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/api request flow

app/skills component flow

2 components

handler app/api/admin.py:25handlerhop 1 app/api/admin.py:10 app/api/admin.py:11 app/api/admin.py:40hop 1hop 2 app/main.py:21 app/main.py:26hop 21 import app/main.py:211 import app/main.py:263 imports app/api/admin.py:10 app/api/chat.py:28 app/api/conversations.py:261 import app/api/admin.py:113 imports app/api/admin.py:40 app/api/chat.py:29 app/api/chat.py:185reads/writes app/api/conversations.py:13reads/writes2 imports app/ingestion/crawler.py:22 app/ingestion/run_ingest.py:25calls app/services/ollama_llm.py:31callsreads/writes app/services/milvus_store.py:14reads/writes app/services/cache.py:18app app/__init__.py:1 app/config.py:1 app/main.py:1apphop 1 · 3 filesSRC 3›api app/api/admin.py:1 app/api/chat.py:1 app/api/conversations.py:1 app/api/models.py:1 app/api/skills.py:1 app/api/__init__.pyapihandler · FastAPI · 6 routesSRC 6›graph app/graph/build.py:1 app/graph/nodes.py:1 app/graph/prompts.py:1 app/graph/state.py:1 app/graph/__init__.pygraphhop 2 · 5 filesSRC 5›ingestion app/ingestion/crawler.py:1 app/ingestion/run_ingest.py:1 app/ingestion/__init__.pyingestionhop 1 · 3 filesSRC 3›services app/services/cache.py:1 app/services/citations.py:1 app/services/evaluation.py:1 app/services/milvus_store.py:1 app/services/ollama_llm.py:1 app/services/__init__.pyserviceshop 1 · 9 filesSRC 6›OpenAI API app/services/ollama_llm.py:31OpenAI APIvia langchain_openaiSRC 1Milvus app/services/milvus_store.py:14Milvusvia pymilvusSRC 1Redis app/services/cache.py:18Redisvia redisSRC 1SQLite app/api/conversations.py:13SQLitevia sqlite3SRC 1skills app/skills/__init__.py:1 app/skills/registry.py:1skills×1 use app/skills/__init__.py:3__init__ app/skills/__init__.py:1__init__SRC 1registry app/skills/registry.py:1registrySRC 1›
component 2solid arrows are imports (count on hover)every box and arrow cites a source line; click one

Not drawn

These were not produced. No empty diagram is ever fabricated to fill a tab.