Skip to content

Commit

Permalink
Updated tests
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Sze <mark@sze.family>
  • Loading branch information
marklysze committed Nov 29, 2024
1 parent 5fe1244 commit 210cd24
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/contrib-graph-rag-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
run: |
python -m pip install --upgrade pip wheel
pip install pytest
- name: Install Falkor DB SDK when on linux
- name: Install FalkorDB SDK when on linux
run: |
pip install -e .[graph_rag_falkor_db]
- name: Set AUTOGEN_USE_DOCKER based on OS
Expand Down
11 changes: 8 additions & 3 deletions test/agentchat/contrib/graph_rag/test_falkor_graph_rag.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
)
def test_falkor_db_query_engine():
"""
Test Falkor DB Query Engine.
1. create a test Falkor DB Query Engine with a schema.
Test FalkorDB Query Engine.
1. create a test FalkorDB Query Engine with a schema.
2. Initialize it with an input txt file.
3. Query it with a question and verify the result contains the critical information.
"""
Expand All @@ -44,7 +44,12 @@ def test_falkor_db_query_engine():
movie = test_schema.add_entity("Movie").add_attribute("title", str, unique=True)
test_schema.add_relation("ACTED", actor, movie)

query_engine = FalkorGraphQueryEngine(schema=test_schema)
query_engine = FalkorGraphQueryEngine(
name="IMDB",
# host="192.168.0.115", # Change
# port=6379, # if needed
schema=test_schema,
)

source_file = "test/agentchat/contrib/graph_rag/the_matrix.txt"
input_docs = [Document(doctype=DocumentType.TEXT, path_or_url=source_file)]
Expand Down

0 comments on commit 210cd24

Please sign in to comment.