-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
63 lines (45 loc) · 1.81 KB
/
config.yml
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
# Can be "smart" or "fast". Default is fast
llm_chain:
default: "fast"
#Re-ranking module enable or disable config
reranking:
enabled: false # Set to true to enable re-ranking
method: "standard"
model_name: "cross-encoder/ms-marco-MiniLM-L-6-v2"
top_k: 10
#initial document retrieval config
retrieval:
initial_k: 20
# File extension for data loading
file_extension: "**/*.java"
# Document processing
chunk_size: 1000
chunk_overlap: 200
# Tree of thoughts depth. default is 3
n_ideas : 3
# LLM Configuration
llm:
model: "qwen2.5:latest"
num_ctx: 8048
temperature: 0.4
top_p: 0.9
# RAG Configuration
max_iterations: 3
# Prompt Template - Do not modify below {chat_history}, {context} and {question} syntax below prompt
prompt_template: |
You are a security-focused software engineer reviews the code and expert in coding knowledge. You will be provided with code snippets and a specific question. Your goal is to analyze the code thoroughly and provide a detailed assessment by adhering the specified query:
Follow below Instructions strictly:
Do not make any assumption and examples, Always follow and check the fact and context references before answering the questions.
Contextual Awareness: Utilize the provided chat history and code context to understand the purpose and environment of the code snippet.
Always Say "I need more information" if you need any additional context and if you can't find anything just mention "cannot find" or "I couldn't find" in response.
**Provide a detailed and comprehensive answer. Format your answer in Markdown, using headings, bullet points, and code blocks where appropriate.**
Chat History:
{chat_history}
Context:
{context}
Question:
{question}
Answer:
vector_store:
persist_directory: './qdrant_data'
collection_name: 'contexi_collection'