├── .env.example ├── .gitignore ├── Dockerfile ├── LICENSE ├── Makefile ├── README.md ├── app ├── __init__.py ├── main.py ├── resource_manager.py ├── settings.py ├── static │ ├── favicon.png │ ├── font.otf │ ├── global.css │ └── sse.js ├── templates │ ├── components │ │ ├── docs.html │ │ ├── header.html │ │ ├── input.html │ │ └── output.html │ ├── layouts │ │ └── basic.html │ └── pages │ │ └── index.html └── utils.py ├── benchmark ├── benchmark_gridsearch.ipynb ├── benchmark_single.ipynb └── test_data.csv ├── docker-compose.yml ├── pyproject.toml ├── uv.lock └── workflows ├── __init__.py ├── iterative_planner.py ├── naive_text2cypher.py ├── naive_text2cypher_retry.py ├── shared ├── fewshot_examples.parquet ├── local_fewshot_manager.py ├── neo4j_fewshot_manager.py ├── sse_event.py └── utils.py ├── steps ├── iterative_planner │ ├── __init__.py │ ├── correct_cypher.py │ ├── final_answer.py │ ├── generate_cypher.py │ ├── guardrails.py │ ├── information_check.py │ ├── initial_plan.py │ └── validate_cypher.py └── naive_text2cypher │ ├── __init__.py │ ├── correct_cypher.py │ ├── evaluate_answer.py │ ├── generate_cypher.py │ └── summarize_answer.py └── text2cypher_retry_check.py /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomasonjo-labs/text2cypher_llama_agent/HEAD/.env.example -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomasonjo-labs/text2cypher_llama_agent/HEAD/.gitignore -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomasonjo-labs/text2cypher_llama_agent/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomasonjo-labs/text2cypher_llama_agent/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomasonjo-labs/text2cypher_llama_agent/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomasonjo-labs/text2cypher_llama_agent/HEAD/README.md -------------------------------------------------------------------------------- /app/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomasonjo-labs/text2cypher_llama_agent/HEAD/app/main.py -------------------------------------------------------------------------------- /app/resource_manager.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomasonjo-labs/text2cypher_llama_agent/HEAD/app/resource_manager.py -------------------------------------------------------------------------------- /app/settings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomasonjo-labs/text2cypher_llama_agent/HEAD/app/settings.py -------------------------------------------------------------------------------- /app/static/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomasonjo-labs/text2cypher_llama_agent/HEAD/app/static/favicon.png -------------------------------------------------------------------------------- /app/static/font.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomasonjo-labs/text2cypher_llama_agent/HEAD/app/static/font.otf -------------------------------------------------------------------------------- /app/static/global.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomasonjo-labs/text2cypher_llama_agent/HEAD/app/static/global.css -------------------------------------------------------------------------------- /app/static/sse.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomasonjo-labs/text2cypher_llama_agent/HEAD/app/static/sse.js -------------------------------------------------------------------------------- /app/templates/components/docs.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomasonjo-labs/text2cypher_llama_agent/HEAD/app/templates/components/docs.html -------------------------------------------------------------------------------- /app/templates/components/header.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomasonjo-labs/text2cypher_llama_agent/HEAD/app/templates/components/header.html -------------------------------------------------------------------------------- /app/templates/components/input.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomasonjo-labs/text2cypher_llama_agent/HEAD/app/templates/components/input.html -------------------------------------------------------------------------------- /app/templates/components/output.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomasonjo-labs/text2cypher_llama_agent/HEAD/app/templates/components/output.html -------------------------------------------------------------------------------- /app/templates/layouts/basic.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomasonjo-labs/text2cypher_llama_agent/HEAD/app/templates/layouts/basic.html -------------------------------------------------------------------------------- /app/templates/pages/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomasonjo-labs/text2cypher_llama_agent/HEAD/app/templates/pages/index.html -------------------------------------------------------------------------------- /app/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomasonjo-labs/text2cypher_llama_agent/HEAD/app/utils.py -------------------------------------------------------------------------------- /benchmark/benchmark_gridsearch.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomasonjo-labs/text2cypher_llama_agent/HEAD/benchmark/benchmark_gridsearch.ipynb -------------------------------------------------------------------------------- /benchmark/benchmark_single.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomasonjo-labs/text2cypher_llama_agent/HEAD/benchmark/benchmark_single.ipynb -------------------------------------------------------------------------------- /benchmark/test_data.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomasonjo-labs/text2cypher_llama_agent/HEAD/benchmark/test_data.csv -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomasonjo-labs/text2cypher_llama_agent/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomasonjo-labs/text2cypher_llama_agent/HEAD/pyproject.toml -------------------------------------------------------------------------------- /uv.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomasonjo-labs/text2cypher_llama_agent/HEAD/uv.lock -------------------------------------------------------------------------------- /workflows/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /workflows/iterative_planner.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomasonjo-labs/text2cypher_llama_agent/HEAD/workflows/iterative_planner.py -------------------------------------------------------------------------------- /workflows/naive_text2cypher.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomasonjo-labs/text2cypher_llama_agent/HEAD/workflows/naive_text2cypher.py -------------------------------------------------------------------------------- /workflows/naive_text2cypher_retry.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomasonjo-labs/text2cypher_llama_agent/HEAD/workflows/naive_text2cypher_retry.py -------------------------------------------------------------------------------- /workflows/shared/fewshot_examples.parquet: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomasonjo-labs/text2cypher_llama_agent/HEAD/workflows/shared/fewshot_examples.parquet -------------------------------------------------------------------------------- /workflows/shared/local_fewshot_manager.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomasonjo-labs/text2cypher_llama_agent/HEAD/workflows/shared/local_fewshot_manager.py -------------------------------------------------------------------------------- /workflows/shared/neo4j_fewshot_manager.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomasonjo-labs/text2cypher_llama_agent/HEAD/workflows/shared/neo4j_fewshot_manager.py -------------------------------------------------------------------------------- /workflows/shared/sse_event.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomasonjo-labs/text2cypher_llama_agent/HEAD/workflows/shared/sse_event.py -------------------------------------------------------------------------------- /workflows/shared/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomasonjo-labs/text2cypher_llama_agent/HEAD/workflows/shared/utils.py -------------------------------------------------------------------------------- /workflows/steps/iterative_planner/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomasonjo-labs/text2cypher_llama_agent/HEAD/workflows/steps/iterative_planner/__init__.py -------------------------------------------------------------------------------- /workflows/steps/iterative_planner/correct_cypher.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomasonjo-labs/text2cypher_llama_agent/HEAD/workflows/steps/iterative_planner/correct_cypher.py -------------------------------------------------------------------------------- /workflows/steps/iterative_planner/final_answer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomasonjo-labs/text2cypher_llama_agent/HEAD/workflows/steps/iterative_planner/final_answer.py -------------------------------------------------------------------------------- /workflows/steps/iterative_planner/generate_cypher.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomasonjo-labs/text2cypher_llama_agent/HEAD/workflows/steps/iterative_planner/generate_cypher.py -------------------------------------------------------------------------------- /workflows/steps/iterative_planner/guardrails.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomasonjo-labs/text2cypher_llama_agent/HEAD/workflows/steps/iterative_planner/guardrails.py -------------------------------------------------------------------------------- /workflows/steps/iterative_planner/information_check.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomasonjo-labs/text2cypher_llama_agent/HEAD/workflows/steps/iterative_planner/information_check.py -------------------------------------------------------------------------------- /workflows/steps/iterative_planner/initial_plan.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomasonjo-labs/text2cypher_llama_agent/HEAD/workflows/steps/iterative_planner/initial_plan.py -------------------------------------------------------------------------------- /workflows/steps/iterative_planner/validate_cypher.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomasonjo-labs/text2cypher_llama_agent/HEAD/workflows/steps/iterative_planner/validate_cypher.py -------------------------------------------------------------------------------- /workflows/steps/naive_text2cypher/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomasonjo-labs/text2cypher_llama_agent/HEAD/workflows/steps/naive_text2cypher/__init__.py -------------------------------------------------------------------------------- /workflows/steps/naive_text2cypher/correct_cypher.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomasonjo-labs/text2cypher_llama_agent/HEAD/workflows/steps/naive_text2cypher/correct_cypher.py -------------------------------------------------------------------------------- /workflows/steps/naive_text2cypher/evaluate_answer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomasonjo-labs/text2cypher_llama_agent/HEAD/workflows/steps/naive_text2cypher/evaluate_answer.py -------------------------------------------------------------------------------- /workflows/steps/naive_text2cypher/generate_cypher.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomasonjo-labs/text2cypher_llama_agent/HEAD/workflows/steps/naive_text2cypher/generate_cypher.py -------------------------------------------------------------------------------- /workflows/steps/naive_text2cypher/summarize_answer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomasonjo-labs/text2cypher_llama_agent/HEAD/workflows/steps/naive_text2cypher/summarize_answer.py -------------------------------------------------------------------------------- /workflows/text2cypher_retry_check.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomasonjo-labs/text2cypher_llama_agent/HEAD/workflows/text2cypher_retry_check.py --------------------------------------------------------------------------------