Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix failing pre-commit checks #999

Merged
merged 1 commit into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions py/cli/utils/docker_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ def set_config_env_vars(obj):
else:
os.environ["CONFIG_NAME"] = obj.get("config_name") or "default"


def get_compose_files():
package_dir = os.path.join(
os.path.dirname(os.path.abspath(__file__)),
Expand Down
2 changes: 1 addition & 1 deletion py/core/configs/local_llm_neo4j_kg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ system_instruction_name = "rag_agent"
tool_names = ["search"]

[agent.generation_config]
model = "ollama/llama3.1"
model = "ollama/llama3.1"
4 changes: 2 additions & 2 deletions py/tests/test_kg.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ async def test_extract_kg_success(kg_extraction_pipe, document_fragment):
assert isinstance(result, KGExtraction)
assert len(result.entities) == 1
assert len(result.triples) == 1
assert result.entities['Entity1'].name == "Entity1"
assert result.entities["Entity1"].name == "Entity1"
assert result.triples[0].subject == "Entity1"
assert result.triples[0].object == "Entity2"

Expand All @@ -71,7 +71,7 @@ async def mock_input_generator():
return_value=KGExtraction(
fragment_id=document_fragment.id,
document_id=document_fragment.document_id,
entities={
entities={
"TestEntity": Entity(
name="TestEntity",
category="TestCategory",
Expand Down
Loading