Skip to content

Commit

Permalink
refine
Browse files Browse the repository at this point in the history
  • Loading branch information
Mini256 committed Mar 1, 2025
1 parent 6a4565b commit 618da90
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 86 deletions.
4 changes: 4 additions & 0 deletions core/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ wheels/

# venv
.venv
.env

# IDE
.idea
10 changes: 0 additions & 10 deletions core/autoflow/storage/graph_store/tidb/tidb_graph_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -928,16 +928,6 @@ def search_similar_relationships(
text("JSON_EXTRACT(meta, :path) = :value")
).params(path=json_path, value=json.dumps(value))

# Debug: Print the SQL query
"""
from sqlalchemy.dialects import mysql
compiled_query = query.compile(
dialect=mysql.dialect(),
)
logger.info(f"Debug - SQL Query: \n{compiled_query}")
"""

with self._session_scope(db_session) as session:
rows = session.exec(query).all()
return [(row[0], row.similarity_score) for row in rows]
Expand Down
8 changes: 7 additions & 1 deletion core/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "autoflow-ai"
version = "0.0.1.dev4"
version = "0.0.1.dev5"
description = "Yet another RAG framework."
authors = [
{ name = "Mini256", email = "[email protected]" }
Expand Down Expand Up @@ -36,6 +36,12 @@ build-backend = "hatchling.build"
managed = true
dev-dependencies = []

[tool.hatch.build]
exclude = [
"/.*",
"/tests",
]

[tool.hatch.metadata]
allow-direct-references = true

Expand Down
Loading

0 comments on commit 618da90

Please sign in to comment.