docs: app config instead of init config (#308)

This commit is contained in:
cachho
2023-07-18 09:16:06 +02:00
committed by GitHub
parent 1df804e7df
commit 96143ac496
4 changed files with 7 additions and 6 deletions

View File

@@ -13,11 +13,12 @@ Here's the readme example with configuration options.
```python
import os
from embedchain import App
from embedchain.config import InitConfig, AddConfig, QueryConfig, ChunkerConfig
from embedchain.config import AppConfig, AddConfig, QueryConfig, ChunkerConfig
from chromadb.utils import embedding_functions
# Example: use your own embedding function
config = InitConfig(ef=embedding_functions.OpenAIEmbeddingFunction(
# Warning: We are currenty reworking the concept of custom apps, this might not be working.
config = AppConfig(ef=embedding_functions.OpenAIEmbeddingFunction(
api_key=os.getenv("OPENAI_API_KEY"),
organization_id=os.getenv("OPENAI_ORGANIZATION"),
model_name="text-embedding-ada-002"

View File

@@ -2,7 +2,7 @@
title: '🔍 Query configurations'
---
## InitConfig
## AppConfig
| option | description | type | default |
|-----------|-----------------------|---------------------------------|------------------------|