-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsample_data.py
More file actions
62 lines (62 loc) · 1.61 KB
/
Copy pathsample_data.py
File metadata and controls
62 lines (62 loc) · 1.61 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
SAMPLE_DOCUMENTS: list[tuple[str, str]] = [
(
"doc_pytorch",
(
"PyTorch is an open source machine learning framework "
"based on the Torch library."
),
),
(
"doc_tensorflow",
(
"TensorFlow is a free and open-source software library "
"for machine learning and artificial intelligence."
),
),
(
"doc_rag",
(
"RAG stands for Retrieval-Augmented Generation, a technique "
"to provide external data to LLMs."
),
),
(
"doc_cross_encoder",
(
"A Cross-Encoder is a type of deep learning model that "
"processes pairs of inputs simultaneously to determine relevance."
),
),
(
"doc_vector_db",
(
"Vector databases like ChromaDB store high-dimensional "
"embeddings for fast similarity search."
),
),
(
"doc_gradient_descent",
(
"Gradient descent is an optimization algorithm used to minimize "
"the loss function in ML models."
),
),
(
"doc_transformers",
(
"Transformers are a type of neural network architecture "
"that has revolutionized NLP."
),
),
(
"doc_ollama",
"Ollama allows you to run large language models locally on your machine.",
),
(
"doc_two_stage_rag",
(
"Two-stage RAG uses a fast retriever (Stage 1) and a precise "
"re-ranker (Stage 2) for better accuracy."
),
),
]