all_possible_config.toml.bak 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  1. [app]
  2. # app settings are global available like `r2r_config.agent.app`
  3. # project_name = "r2r_default" # optional, can also set with `R2R_PROJECT_NAME` env var
  4. default_max_documents_per_user = 1_000_000
  5. default_max_chunks_per_user = 10_000_000
  6. default_max_collections_per_user = 1_000_000
  7. # Set the default max upload size to 2 GB for local testing
  8. default_max_upload_size = 2147483648 # 2 GB for anything not explicitly listed
  9. # LLM used for internal operations, like deriving conversation names
  10. fast_llm = "openai/gpt-4o-mini"
  11. # LLM used for user-facing output, like RAG replies
  12. quality_llm = "openai/gpt-4o-mini"
  13. # LLM used for ingesting visual inputs
  14. vlm = "openai/gpt-4o-mini"
  15. # LLM used for transcription
  16. audio_lm = "openai/whisper-1"
  17. # Reasoning model, used for `research` agent
  18. reasoning_llm = "openai/o3-mini"
  19. # Planning model, used for `research` agent
  20. planning_llm = "anthropic/claude-3-7-sonnet-20250219"
  21. [app.max_upload_size_by_type]
  22. # Common text-based formats
  23. txt = 2147483648 # 2 GB
  24. md = 2147483648
  25. tsv = 2147483648
  26. csv = 2147483648
  27. xml = 2147483648
  28. html = 2147483648
  29. # Office docs
  30. doc = 2147483648
  31. docx = 2147483648
  32. ppt = 2147483648
  33. pptx = 2147483648
  34. xls = 2147483648
  35. xlsx = 2147483648
  36. odt = 2147483648
  37. # PDFs
  38. pdf = 2147483648
  39. # E-mail
  40. eml = 2147483648
  41. msg = 2147483648
  42. p7s = 2147483648
  43. # Images
  44. bmp = 2147483648
  45. heic = 2147483648
  46. jpeg = 2147483648
  47. jpg = 2147483648
  48. png = 2147483648
  49. tiff = 2147483648
  50. # E-books and other formats
  51. epub = 2147483648
  52. rtf = 2147483648
  53. rst = 2147483648
  54. org = 2147483648
  55. [agent]
  56. rag_agent_static_prompt = "static_rag_agent"
  57. rag_agent_dynamic_prompt = "dynamic_rag_agent"
  58. #tools = ["search_file_knowledge", "content"]
  59. rag_tools = ["search_file_descriptions", "search_file_knowledge", "get_file_content"] # can add "web_search" | "web_scrape"
  60. # The following tools are available to the `research` agent
  61. research_tools = ["rag", "reasoning", "critique", "python_executor"]
  62. # tool_names = ["local_search", "web_search"] # uncomment to enable web search
  63. #tool_names = ["local_search"]
  64. # [agent.generation_config]
  65. # model = "openai/gpt-4o"
  66. [auth]
  67. provider = "r2r"
  68. access_token_lifetime_in_minutes = 600000 # set a very high default value, for easier testing
  69. refresh_token_lifetime_in_days = 70
  70. require_authentication = false
  71. require_email_verification = false
  72. default_admin_email = "xujiawei@cocorobo.cc"
  73. default_admin_password = "usestudio-1"
  74. [completion]
  75. provider = "r2r"
  76. concurrent_request_limit = 256
  77. #fast_llm = "openai/gpt-4o-mini"
  78. [completion.generation_config]
  79. #model = "openai/gpt-4o-mini"
  80. temperature = 0.1
  81. top_p = 1.0
  82. max_tokens_to_sample = 1024
  83. stream = false
  84. add_generation_kwargs = { }
  85. [crypto]
  86. provider = "bcrypt"
  87. [database]
  88. provider = "postgres"
  89. default_collection_name = "Default"
  90. default_collection_description = "Your default collection."
  91. # collection_summary_system_prompt = 'default_system'
  92. # collection_summary_task_prompt = 'default_collection_summary'
  93. # KG settings
  94. batch_size = 64
  95. # PostgreSQL tuning settings
  96. [database.postgres_configuration_settings]
  97. checkpoint_completion_target = 0.9
  98. default_statistics_target = 100
  99. effective_io_concurrency = 1
  100. effective_cache_size = 524288
  101. huge_pages = "try"
  102. maintenance_work_mem = 65536
  103. max_connections = 256
  104. max_parallel_workers_per_gather = 2
  105. max_parallel_workers = 8
  106. max_parallel_maintenance_workers = 2
  107. max_wal_size = 1024
  108. max_worker_processes = 8
  109. min_wal_size = 80
  110. shared_buffers = 16384
  111. statement_cache_size = 100
  112. random_page_cost = 4.0
  113. wal_buffers = 256
  114. work_mem = 4096
  115. # Graph creation settings
  116. [database.graph_creation_settings]
  117. graph_entity_description_prompt = "graph_entity_description"
  118. graph_extraction_prompt = "graph_extraction"
  119. entity_types = []
  120. relation_types = []
  121. automatic_deduplication = false
  122. # Graph enrichment settings
  123. [database.graph_enrichment_settings]
  124. graph_communities_prompt = "graph_communities"
  125. # (Optional) Graph search settings – add fields as needed
  126. [database.graph_search_settings]
  127. # e.g., search_mode = "default"
  128. # Rate limiting settings
  129. [database.limits]
  130. global_per_min = 60
  131. route_per_min = 20
  132. monthly_limit = 10000
  133. # Route-specific limits (empty by default)
  134. [database.route_limits]
  135. # e.g., "/api/search" = { global_per_min = 30, route_per_min = 10, monthly_limit = 5000 }
  136. # User-specific limits (empty by default)
  137. [database.user_limits]
  138. # e.g., "user_uuid_here" = { global_per_min = 20, route_per_min = 5, monthly_limit = 2000 }
  139. [database.maintenance]
  140. vacuum_schedule = "0 3 * * *" # Run at 3:00 AM daily
  141. [embedding]
  142. provider = "litellm"
  143. # For basic applications, use `openai/text-embedding-3-small` with `base_dimension = 512`
  144. # RECOMMENDED - For advanced applications,
  145. # use `openai/text-embedding-3-large` with `base_dimension = 3072` and binary quantization
  146. #base_model = "openai/text-embedding-3-small"
  147. #base_dimension = 512
  148. #base_model = "openai/text-embedding-3-large"
  149. base_model = "openai/text-embedding-v3"
  150. base_dimension = 256
  151. rerank_model = ""
  152. rerank_url = ""
  153. # rerank_model = "huggingface/mixedbread-ai/mxbai-rerank-large-v1" # reranking model
  154. batch_size = 32
  155. prefixes = {} # Provide prefix overrides here if needed
  156. add_title_as_prefix = false
  157. concurrent_request_limit = 2560
  158. max_retries = 3
  159. initial_backoff = 1.0
  160. max_backoff = 64.0
  161. # Deprecated fields (if still used)
  162. rerank_dimension = 0
  163. rerank_transformer_type = ""
  164. # Vector quantization settings for embeddings
  165. [embedding.quantization_settings]
  166. quantization_type = "FP32"
  167. # (Additional quantization parameters can be added here)
  168. [completion_embedding]
  169. # Generally this should be the same as the embedding config, but advanced users may want to run with a different provider to reduce latency
  170. provider = "litellm"
  171. base_model = "openai/text-embedding-v3"
  172. base_dimension = 256
  173. batch_size = 128
  174. add_title_as_prefix = false
  175. concurrent_request_limit = 256
  176. [file]
  177. provider = "postgres"
  178. [ingestion]
  179. provider = "r2r"
  180. chunking_strategy = "recursive"
  181. chunk_size = 800
  182. chunk_overlap = 400
  183. excluded_parsers = ["mp4"]
  184. # Ingestion-time document summary parameters
  185. # skip_document_summary = False
  186. # document_summary_system_prompt = 'default_system'
  187. # document_summary_task_prompt = 'default_summary'
  188. # chunks_for_document_summary = 128
  189. document_summary_model = "openai/gpt-4o-mini"
  190. vision_img_model = "openai/gpt-4o-mini"
  191. vision_pdf_model = "openai/gpt-4o-mini"
  192. automatic_extraction = false # enable automatic extraction of entities and relations
  193. parser_overrides = {}
  194. # Chunk enrichment settings
  195. [ingestion.chunk_enrichment_settings]
  196. chunk_enrichment_prompt = "chunk_enrichment"
  197. enable_chunk_enrichment = false
  198. n_chunks = 2
  199. # [ingestion.chunk_enrichment_settings]
  200. # enable_chunk_enrichment = false # disabled by default
  201. # n_chunks = 2 # the number of chunks (both preceeding and succeeding) to use in enrichment
  202. # generation_config = { model = "openai/gpt-4o-mini" }
  203. [ingestion.extra_parsers]
  204. pdf = ["ocr", "zerox"]
  205. #pdf = "ocr"
  206. [logging]
  207. provider = "r2r"
  208. log_table = "logs"
  209. log_info_table = "log_info"
  210. [ocr]
  211. provider = "mistral"
  212. model = "mistral-ocr-latest"
  213. [orchestration]
  214. provider = "no"
  215. #max_runs = 2048
  216. #kg_creation_concurrency_limit = 32
  217. #ingestion_concurrency_limit = 16
  218. #kg_concurrency_limit = 4
  219. [prompt]
  220. provider = "r2r"
  221. [email]
  222. provider = "console_mock"
  223. [scheduler]
  224. provider = "apscheduler"