cheshire-cat-ai / core

Production ready AI agent framework
https://cheshirecat.ai
GNU General Public License v3.0
2.27k stars 302 forks source link

Endpoint `POST /memory/recall` with metadata #899

Open pieroit opened 1 month ago

pieroit commented 1 month ago

Endpoint GET /memory/recall should remain and log a warning that is going to be deprecated in v2.

The new POST /memory/recall should accept a json with this format:

{
    "text": "...",
    "k": 34,
    "metadata": {}
}

metadata for the moment (as in other endpoints) is a simple flat dictionary to search in AND

In the future we may allow another field vector_db_filter to be sent directly to Qdrant, with Qdrant filter syntax

valentimarco commented 1 month ago

Same as #898, closing the old one to favor this