- Docker
- Docker Compose
- Clone this repository
- Create an
.envfile. You can copy the contents of.env.exampleand make any necessary changes - Run
docker-compose buildto build the image - Run
docker-compose up -dto run the containers
Insert new knowledge into the database. The body must be a JSON with the following structure:
{
"data": [
{
"id": "08c8ded7-49cc-4746-b2eb-6330c811b7a9",
"text": "Text that will be converted to embeddings",
"entity": "Name of the entity that will be used to filter if needed",
"payload": {
"key": "optional"
}
}
]
}This endpoint can receive the following parameters:
query: Query to search fork: Number of results to return. Default = 5entities: Comma separated list of entities to filter the results. Default = all entities
Delete a knowledge from the database. The id parameter is the id of the knowledge to delete.