-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathcontext.yaml
More file actions
91 lines (79 loc) · 2.12 KB
/
context.yaml
File metadata and controls
91 lines (79 loc) · 2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
$schema: 'https://raw.githubusercontent.com/context-hub/generator/refs/heads/main/json-schema.json'
import:
- path: src/**/context.yaml
- path: prompts.yaml
- path: ./docs
format: md
- url: https://gist.githubusercontent.com/butschster/29e84fb9c976ac837181141f88049a35/raw/ed38539950f8c9c45ca8c67f9e026a837c97bc66/01-dev-prompts.yaml
type: url
# context.yaml
rag:
servers:
default:
driver: qdrant
endpoint_url: ${RAG_QDRANT_ENDPOINT:-http://qdrant.home.local}
api_key: ${RAG_QDRANT_API_KEY:-}
embeddings_dimension: 1536
embeddings_distance: Cosine
collections:
default:
server: default
collection: ${RAG_COLLECTION:-intruforce_knowledge}
description: "Project knowledge base"
vectorizer:
platform: openai
model: text-embedding-3-small
api_key: ${OPENAI_API_KEY}
transformer:
chunk_size: 1000
overlap: 200
tools:
- id: ctx-docs
name: CTX docs search
type: rag
description: |
Search the project knowledge base for documentation, code explanations, and insights.
Use this when you need to find previously stored information about the codebase.
collection: default
operations: [ search ]
projects:
- name: ctx-mcp-server
description: MCP server library
- name: ctx-docs
description: Docs for CTX
- name: mcp-schema
path: vendor/php-mcp/schema
description: PHP DTOs for the MCP specification
exclude:
patterns:
- ".env*"
- "*cache"
paths:
- ".claude"
- ".context"
- ".build"
- ".researches"
- "runtime"
documents:
- description: 'Project structure overview'
outputPath: project-structure.md
overwrite: true
sources:
- type: tree
sourcePaths:
- src
showCharCount: true
showSize: true
- description: Core Interfaces
outputPath: core/interfaces.md
sources:
- type: file
sourcePaths: src
filePattern:
- '*Interface.php'
showTreeView: true
- description: "Changes in the Project"
outputPath: "changes.md"
sources:
- type: git_diff
commit: unstaged