Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .env.oracle.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# =====================================================
# DocsGPT — Oracle 26ai Vector Store Reference .env
# Copy this to .env and fill in your values
# NEVER commit real credentials to Git
# =====================================================

# ── Vector Store ──────────────────────────────────
VECTOR_STORE=oracle

# ── Oracle 26ai Autonomous DB ─────────────────────
# Credentials from Oracle Cloud Console
ORACLE_USER=ADMIN
ORACLE_PASSWORD=your_admin_password_here

# DSN name from wallet's tnsnames.ora
# Suffixes: _high (best performance) / _medium / _low
ORACLE_DSN=your_db_name_high

# Absolute path to unzipped wallet folder
# Download the wallet from Oracle Cloud Console, unzip it, and point this variable to the folder location
# Windows: C:\path\to\Wallet_yourdb
# Linux: /path/to/wallet
ORACLE_WALLET_LOCATION=/path/to/your/wallet

# Password set when downloading wallet from OCI
ORACLE_WALLET_PASSWORD=your_wallet_password_here

# ── Embeddings ────────────────────────────────────
EMBEDDINGS_NAME=sentence-transformers/all-mpnet-base-v2
# EMBEDDINGS_KEY=your_openai_or_hf_key # only needed for OpenAI embeddings

# ── LLM ──────────────────────────────────────────
LLM_PROVIDER=
LLM_NAME=
API_KEY=your_llm_api_key_here

# ── MongoDB ───────────────────────────────────────
MONGO_URI=mongodb://localhost:27017
MONGO_DB_NAME=docsgpt

# ── Redis / Celery ────────────────────────────────
CELERY_BROKER_URL=redis://localhost:6379/0
CELERY_RESULT_BACKEND=redis://localhost:6379/1
CACHE_REDIS_URL=redis://localhost:6379/2

# ── App ───────────────────────────────────────────
API_URL=http://localhost:7091
INTERNAL_KEY=your_secure_internal_key_here
JWT_SECRET_KEY=your_jwt_secret_key_here
ENCRYPTION_SECRET_KEY=your_encryption_secret_key_here
9 changes: 8 additions & 1 deletion application/core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class Settings(BaseSettings):
DOCLING_OCR_ENABLED: bool = False # Enable OCR for docling parsers (PDF, images)
DOCLING_OCR_ATTACHMENTS_ENABLED: bool = False # Enable OCR for docling when parsing attachments
VECTOR_STORE: str = (
"faiss" # "faiss" or "elasticsearch" or "qdrant" or "milvus" or "lancedb" or "pgvector"
"faiss" # "faiss" or "elasticsearch" or "qdrant" or "milvus" or "lancedb" or "pgvector" or "oracle"
)
RETRIEVERS_ENABLED: list = ["classic_rag"]
AGENT_NAME: str = "classic"
Expand Down Expand Up @@ -132,6 +132,13 @@ class Settings(BaseSettings):
MILVUS_URI: Optional[str] = "./milvus_local.db" # milvus lite version as default
MILVUS_TOKEN: Optional[str] = ""

# Oracle vectorstore config (Oracle AI Database Free (26ai) with native VECTOR support)
ORACLE_USER: Optional[str] = None
ORACLE_PASSWORD: Optional[str] = None
ORACLE_DSN: Optional[str] = None
ORACLE_WALLET_LOCATION: Optional[str] = None
ORACLE_WALLET_PASSWORD: Optional[str] = None

# LanceDB vectorstore config
LANCEDB_PATH: str = "./data/lancedb" # Path where LanceDB stores its local data
LANCEDB_TABLE_NAME: Optional[str] = (
Expand Down
1 change: 1 addition & 0 deletions application/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ networkx==3.6.1
numpy==2.4.0
openai==2.14.0
openapi3-parser==1.1.22
oracledb>=2.0.0
orjson==3.11.5
packaging==24.2
pandas==2.3.3
Expand Down
Loading