Skip to content

Commit

Permalink
Add support for queryig code interpreter
Browse files Browse the repository at this point in the history
  • Loading branch information
homanp committed Feb 28, 2024
1 parent 8264094 commit 8f3aaee
Show file tree
Hide file tree
Showing 5 changed files with 302 additions and 263 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ Input example:
"encoder": {
"type": "openai",
"name": "text-embedding-3-small",
}
},
"interpreter_mode": False, # Set to True if you wish to run computation Q&A with a code interpreter
"session_id": "my_session_id" # keeps micro-vm sessions and enables caching
}
```
Expand Down
1 change: 1 addition & 0 deletions models/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class RequestPayload(BaseModel):
index_name: str
encoder: Encoder
session_id: Optional[str] = None
interpreter_mode: Optional[bool] = False


class ResponseData(BaseModel):
Expand Down
Loading

0 comments on commit 8f3aaee

Please sign in to comment.