mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 13:18:18 +00:00
Add E2B as an optional code sandbox provider
- Specify E2B api key and template to use via env variables - Try load, use e2b library when E2B api key set - Fallback to try use terrarium sandbox otherwise - Enable more python packages in e2b sandbox like rdkit via custom e2b template - Use Async E2B Sandbox - Parallelize file IO with sandbox - Add documentation on how to enable E2B as code sandbox instead of Terrarium
This commit is contained in:
@@ -58,8 +58,10 @@ services:
|
||||
- KHOJ_DEBUG=False
|
||||
- KHOJ_ADMIN_EMAIL=username@example.com
|
||||
- KHOJ_ADMIN_PASSWORD=password
|
||||
# Default URL of Terrarium, the Python sandbox used by Khoj to run code. Its container is specified above
|
||||
# Default URL of Terrarium, the default Python sandbox used by Khoj to run code. Its container is specified above
|
||||
- KHOJ_TERRARIUM_URL=http://sandbox:8080
|
||||
# Uncomment line below to have Khoj run code in remote E2B code sandbox instead of the self-hosted Terrarium sandbox above. Get your E2B API key from https://e2b.dev/.
|
||||
# - E2B_API_KEY=your_e2b_api_key
|
||||
# Default URL of SearxNG, the default web search engine used by Khoj. Its container is specified above
|
||||
- KHOJ_SEARXNG_URL=http://search:8080
|
||||
# Uncomment line below to use with Ollama running on your local machine at localhost:11434.
|
||||
|
||||
Reference in New Issue
Block a user