DeepFellow DOCS

Ask a question against the knowledge graph and get a synthesized answer

POST
/v1/graph/completion

Answer a natural-language question using the project's knowledge graph.

Authorization

headerAuthorizationBearer <token>

Header Parameters

OpenAI-Organization?|

Organization Id from OpenAi compatible endpoint. Required to organization access or project access (with OpenAI-Project header) when logged as User or Admin User.

OpenAI-Project?|

Project Id from OpenAi compatible endpoint. Required to project access for organization api key or User / Admin User access with OpenAI-Organization

Request Body

application/json
  1. body

Completion (RAG Q&A) request against the knowledge graph.

query*string

Natural language question

history?array<>|

Prior turns for multi-turn conversations

Response Body

Successful Response

application/json
  1. response

Completion response: a synthesized answer with its cited source context.

answer*string
sources*array<>
Example Request
curl -X POST 'https://deepfellow-server-host/v1/graph/completion' \  -H 'Content-Type: application/json' \  -d '{  "query": "string"}'
Example Response
{  "answer": "string",  "sources": [    {      "content": "string",      "score": 0,      "metadata": {}    }  ]}

We use cookies on our website. We use them to ensure proper functioning of the site and, if you agree, for purposes such as analytics, marketing, and targeting ads.