Skip to content

Commit

Permalink
fix chunks model for knowledge graph (#550)
Browse files Browse the repository at this point in the history
  • Loading branch information
IANTHEREAL authored Dec 27, 2024
1 parent a01d963 commit ebb31e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/app/rag/knowledge_base/index_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,15 @@ def get_kb_tidb_graph_store(session: Session, kb: KnowledgeBase) -> TiDBGraphSto
entity_model = get_kb_entity_model(kb)
relationship_model = get_kb_relationship_model(kb)
inspection.inspect(relationship_model)
chunk_model = get_kb_chunk_model(kb)

graph_store = TiDBGraphStore(
dspy_lm=dspy_lm,
session=session,
embed_model=embed_model,
entity_db_model=entity_model,
relationship_db_model=relationship_model,
chunk_db_model=chunk_model,
)
return graph_store

Expand Down

0 comments on commit ebb31e9

Please sign in to comment.