Merge branch 'main' into feat/filters-sweep
This commit is contained in:
commit
cb76a10c04
8 changed files with 23 additions and 8 deletions
3
.github/workflows/deploy-gh-pages.yml
vendored
3
.github/workflows/deploy-gh-pages.yml
vendored
|
|
@ -6,8 +6,7 @@ on:
|
||||||
- main
|
- main
|
||||||
paths:
|
paths:
|
||||||
- 'docs/**'
|
- 'docs/**'
|
||||||
# Review gh actions docs if you want to further define triggers, paths, etc
|
workflow_dispatch:
|
||||||
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
|
|
|
||||||
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -19,4 +19,4 @@ wheels/
|
||||||
*.json
|
*.json
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
||||||
config.yaml
|
config/
|
||||||
|
|
|
||||||
15
config/config.example.yaml
Normal file
15
config/config.example.yaml
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
# OpenRAG Configuration File
|
||||||
|
provider:
|
||||||
|
model_provider: "openai" # openai, anthropic, azure, etc.
|
||||||
|
api_key: "your-api-key" # or use OPENAI_API_KEY env var
|
||||||
|
|
||||||
|
knowledge:
|
||||||
|
embedding_model: "text-embedding-3-small"
|
||||||
|
chunk_size: 1000
|
||||||
|
chunk_overlap: 200
|
||||||
|
ocr: true
|
||||||
|
picture_descriptions: false
|
||||||
|
|
||||||
|
agent:
|
||||||
|
llm_model: "gpt-4o-mini"
|
||||||
|
system_prompt: "You are a helpful AI assistant..."
|
||||||
|
|
@ -74,7 +74,7 @@ services:
|
||||||
- ./documents:/app/documents:Z
|
- ./documents:/app/documents:Z
|
||||||
- ./keys:/app/keys:Z
|
- ./keys:/app/keys:Z
|
||||||
- ./flows:/app/flows:Z
|
- ./flows:/app/flows:Z
|
||||||
- ./config.yaml:/app/config.yaml:Z
|
- ./config:/app/config:z
|
||||||
|
|
||||||
openrag-frontend:
|
openrag-frontend:
|
||||||
image: phact/openrag-frontend:${OPENRAG_VERSION:-latest}
|
image: phact/openrag-frontend:${OPENRAG_VERSION:-latest}
|
||||||
|
|
|
||||||
|
|
@ -73,7 +73,7 @@ services:
|
||||||
- ./documents:/app/documents:Z
|
- ./documents:/app/documents:Z
|
||||||
- ./keys:/app/keys:Z
|
- ./keys:/app/keys:Z
|
||||||
- ./flows:/app/flows:z
|
- ./flows:/app/flows:z
|
||||||
- ./config.yaml:/app/config.yaml:Z
|
- ./config:/app/config:z
|
||||||
gpus: all
|
gpus: all
|
||||||
|
|
||||||
openrag-frontend:
|
openrag-frontend:
|
||||||
|
|
|
||||||
|
|
@ -20,10 +20,10 @@ const config = {
|
||||||
},
|
},
|
||||||
|
|
||||||
// Set the production url of your site here
|
// Set the production url of your site here
|
||||||
url: 'https://langflow-ai.github.io',
|
url: 'https://docs.openr.ag',
|
||||||
// Set the /<baseUrl>/ pathname under which your site is served
|
// Set the /<baseUrl>/ pathname under which your site is served
|
||||||
// For GitHub pages deployment, it is often '/<projectName>/'
|
// For GitHub pages deployment, it is often '/<projectName>/'
|
||||||
baseUrl: process.env.BASE_URL ? process.env.BASE_URL : '/openrag/',
|
baseUrl: process.env.BASE_URL ? process.env.BASE_URL : '/',
|
||||||
|
|
||||||
// GitHub pages deployment config.
|
// GitHub pages deployment config.
|
||||||
// If you aren't using GitHub pages, you don't need these.
|
// If you aren't using GitHub pages, you don't need these.
|
||||||
|
|
|
||||||
1
docs/static/CNAME
vendored
Normal file
1
docs/static/CNAME
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
docs.openr.ag
|
||||||
|
|
@ -73,7 +73,7 @@ class ConfigManager:
|
||||||
Args:
|
Args:
|
||||||
config_file: Path to configuration file. Defaults to 'config.yaml' in project root.
|
config_file: Path to configuration file. Defaults to 'config.yaml' in project root.
|
||||||
"""
|
"""
|
||||||
self.config_file = Path(config_file) if config_file else Path("config.yaml")
|
self.config_file = Path(config_file) if config_file else Path("config/config.yaml")
|
||||||
self._config: Optional[OpenRAGConfig] = None
|
self._config: Optional[OpenRAGConfig] = None
|
||||||
|
|
||||||
def load_config(self) -> OpenRAGConfig:
|
def load_config(self) -> OpenRAGConfig:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue