Files
ai-agent-book/chapter3/structured-index/env.example
T
liqiang b119135836
Build latest book artifacts / build (push) Canceled after 0s
dependency resolution / resolve (3.11) (push) Canceled after 0s
dependency resolution / resolve (3.13) (push) Canceled after 0s
deploy-pages / build (push) Canceled after 0s
deploy-pages / deploy (push) Canceled after 0s
i18n consistency check / check (push) Canceled after 0s
provider adoption tests / test (chapter2/context-compression) (push) Canceled after 0s
provider adoption tests / test (chapter2/prompt-injection) (push) Canceled after 0s
provider adoption tests / test (chapter2/system-hint) (push) Canceled after 0s
provider adoption tests / test (chapter3/log-sanitization) (push) Canceled after 0s
web-search-agent tests / test (push) Canceled after 0s
web-search-agent tests / agentbook (push) Canceled after 0s
ai-agent-book 精选快照(<2MB 代码与文档,来自 github.com/bojieli/ai-agent-book)
2026-08-20 13:12:50 +00:00

44 lines
1.3 KiB
Plaintext

# LLM provider: openai (default) or dashscope/qwen/bailian
LLM_PROVIDER=openai
# OpenAI API Configuration
OPENAI_API_KEY=your-openai-api-key-here
# Alibaba Cloud Model Studio / Bailian (Qwen)
# DASHSCOPE_API_KEY=your-dashscope-api-key-here
# DASHSCOPE_BASE_URL=https://dashscope-intl.aliyuncs.com/compatible-mode/v1
# OpenRouter universal fallback (optional): the chat LLM used for RAPTOR
# summarization and GraphRAG entity extraction is routed through OpenRouter
# when OPENAI_API_KEY is missing but OPENROUTER_API_KEY is set (gpt-5.6-luna ->
# openai/gpt-5.6-luna; OPENROUTER_MODEL overrides). Embeddings here are local
# SentenceTransformers, so they are unaffected.
OPENROUTER_API_KEY=your-openrouter-api-key-here
# OPENROUTER_MODEL=openai/gpt-5.6-luna
# RAPTOR Configuration
RAPTOR_MODEL=gpt-5.6-luna
RAPTOR_EMBEDDING_MODEL=text-embedding-3-small
RAPTOR_MAX_TOKENS=2048
RAPTOR_TEMPERATURE=0.1
RAPTOR_CHUNK_SIZE=1000
RAPTOR_CHUNK_OVERLAP=200
RAPTOR_TREE_DEPTH=3
RAPTOR_SUMMARY_LENGTH=200
# GraphRAG Configuration
GRAPHRAG_MODEL=gpt-5.6-luna
GRAPHRAG_EMBEDDING_MODEL=text-embedding-3-small
GRAPHRAG_CHUNK_SIZE=1200
GRAPHRAG_CHUNK_OVERLAP=100
GRAPHRAG_MAX_TRIPLES=10
GRAPHRAG_COMMUNITY_ALG=leiden
GRAPHRAG_SUMMARY_MODEL=gpt-5.6-luna
# API Service Configuration
API_HOST=127.0.0.1
API_PORT=4242
API_RELOAD=true
API_MAX_RESULTS=10
API_TIMEOUT=30