julep-ai / julep

A new DSL and server for AI agents and multi-step tasks
https://julep.ai
Apache License 2.0
2.66k stars 911 forks source link

feat(agents-api): Add ``metadata`` field to ``DocReference`` and retrieve it in the query #816

Closed Ahmad-mtos closed 2 weeks ago

Ahmad-mtos commented 2 weeks ago

Added metadata to DocReference in typespec, and fetched the metadata in search_docs_by_text and search_docs_by_embedding

Closes #814


[!IMPORTANT] Add metadata field to DocReference and update search functions and OpenAPI schema to handle it.

  • Behavior:
    • Add metadata field to DocReference in Docs.py and models.tsp.
    • Update search_docs_by_text.py and search_docs_by_embedding.py to retrieve metadata from documents.
  • OpenAPI:
    • Update openapi-1.0.0.yaml to include metadata in DocReference schema.
  • Tests:
    • Modify tests in test_docs_queries.py to check for metadata in search results.

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