- Docker
- Docker Compose
- Clone this repository
- Create an
.env
file. You can copy the contents of.env.example
and make any necessary changes - Run
docker-compose build
to build the image - Run
docker-compose up -d
to run the containers
Insert new knowledge into the database. The body must be a JSON with the following structure:
{
"data": [
{
"id": "abc",
"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.