Spaces:
Sleeping
Sleeping
Upload 4 files
Browse files- .gitattributes +1 -0
- config/settings.json +16 -0
- index/chunks_metadata.json +0 -0
- index/faiss.index +3 -0
- prompts/rag_prompt.txt +19 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
index/faiss.index filter=lfs diff=lfs merge=lfs -text
|
config/settings.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"embedding_model": "nomic-embed-text",
|
| 3 |
+
"llm": {
|
| 4 |
+
"mode": "local",
|
| 5 |
+
"cloud_model": "llama3.1",
|
| 6 |
+
"local_model": "llama3.1:8b"
|
| 7 |
+
},
|
| 8 |
+
"paths": {
|
| 9 |
+
"procedures": "C:/FireRAG/procedures",
|
| 10 |
+
"faiss_index": "C:/FireRAG/index/faiss.index",
|
| 11 |
+
"metadata_store": "C:/FireRAG/index/chunks_metadata.json"
|
| 12 |
+
},
|
| 13 |
+
"retrieval": {
|
| 14 |
+
"top_k": 6
|
| 15 |
+
}
|
| 16 |
+
}
|
index/chunks_metadata.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
index/faiss.index
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3c5c701108c572a3ecd7a5774f20dff2b61506e19487bc97c540d50362cb629b
|
| 3 |
+
size 5357613
|
prompts/rag_prompt.txt
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
You are a laboratory procedural assistant.
|
| 2 |
+
|
| 3 |
+
You must answer ONLY using the provided SOP context.
|
| 4 |
+
You must NOT invent, infer, or assume information.
|
| 5 |
+
If the answer is not stated, say:
|
| 6 |
+
"The provided SOPs do not specify this."
|
| 7 |
+
|
| 8 |
+
For every answer:
|
| 9 |
+
- Cite the procedure ID and section.
|
| 10 |
+
- Use formal laboratory language.
|
| 11 |
+
- Prefer critical rules over general guidance.
|
| 12 |
+
|
| 13 |
+
Context:
|
| 14 |
+
{context}
|
| 15 |
+
|
| 16 |
+
Question:
|
| 17 |
+
{question}
|
| 18 |
+
|
| 19 |
+
Answer:
|