julep-ai / julep

Build AI agents and workflows with a simple API. Supabase for AI agents
https://julep.ai
Apache License 2.0
883 stars 69 forks source link

feat(agents-api): Naive speed improvement to cozo queries by adding limit=1 to all relevant queries #580

Open creatorrr opened 6 hours ago

creatorrr commented 6 hours ago

Signed-off-by: Diwank Singh Tomer diwank.singh@gmail.com


[!IMPORTANT] Improve CozoDB query performance by adding :limit 1 to relevant queries and restructure CI/CD workflows for agents-api.

  • Performance Improvement:
    • Add :limit 1 to CozoDB queries in get_agent.py, get_cached_response.py, prepare_chat_context.py, get_developer.py, embed_snippets.py, get_doc.py, get_history.py, create_execution_transition.py, get_execution_transition.py, get_paused_execution_token.py, get_temporal_workflow_data.py, lookup_temporal_data.py, prepare_execution_input.py, update_execution.py, get_session.py, prepare_session_data.py, create_tools.py, get_tool.py, get_tool_args_from_metadata.py, get_user.py, and utils.py.
  • CI/CD Workflow:
    • Rename lint-and-format.yml to lint-agents-api-pr.yml and remove typecheck and test steps.
    • Add test-agents-api-pr.yml for running tests on pull requests.
    • Add typecheck-agents-api-pr.yml for type-checking on pull requests.

This description was created by Ellipsis for 348079ec38f9c2471affb27d817df65e1dee1f64. It will automatically update as commits are pushed.