# Open Notebook Configuration Example # Copy this file to .env and fill in your values # # NOTE: The application automatically loads .env file on startup if it exists. # You can also use .env.local for local overrides (not tracked in git). # LLM Provider - Choose one # ============================ # OpenAI (default) OPENAI_API_KEY=sk-your-openai-api-key-here OPENAI_BASE_URL=https://api.openai.com/v1 OPENAI_MODEL=gpt-4o-mini EMBEDDING_MODEL=text-embedding-3-small # OR Ollama (local, free) OLLAMA_BASE_URL=http://localhost:11434 OLLAMA_MODEL=llama3.2 # OR Google Gemini (for Infographics and Nano Banana) GOOGLE_API_KEY=your-google-api-key-here # Server Configuration # ============================ SERVER_HOST=0.0.0.0 SERVER_PORT=8080 # Vector Store Configuration # ============================ # Options: sqlite, memory, supabase, postgres, redis VECTOR_STORE_TYPE=sqlite SQLITE_PATH=./data/vector.db # Supabase (if using) SUPABASE_URL=https://your-project.supabase.co SUPABASE_KEY=your-supabase-anon-key # PostgreSQL (if using) POSTGRES_URL=postgres://user:password@localhost:5432/notebook # Redis (if using) REDIS_URL=redis://localhost:6379 # Store Configuration # ============================ STORE_TYPE=sqlite STORE_PATH=./data/checkpoints.db # Agent Configuration # ============================ MAX_SOURCES=5 CHUNK_SIZE=1000 CHUNK_OVERLAP=200 # Document Conversion Configuration # ============================ # Enable Microsoft markitdown for converting PDF, DOCX, PPTX, XLSX to Markdown # Requires markitdown CLI tool to be installed (pip install markitdown) # Set to false to use original simple text extraction (may not work well for binary formats) ENABLE_MARKITDOWN=true # Podcast Configuration # ============================ ENABLE_PODCAST=true PODCAST_VOICE=alloy # LangSmith Tracing (optional) # ============================ LANGCHAIN_API_KEY=your-langsmith-key LANGCHAIN_PROJECT=notex # 允许删除(默认为 true) ALLOW_DELETE=true # 允许为一个笔记本创建多个相同类型的笔记(默认为 true) ALLOW_MULTIPLE_NOTES_OF_SAME_TYPE=true # 允许修改笔记本名称(默认为 true) ALLOW_NOTEBOOK_RENAME=true