You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test2text/pages/documentation.py
+27-27Lines changed: 27 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -7,72 +7,72 @@ def show_documentation():
7
7
8
8
## About the Application
9
9
10
-
**Test2Text** is a tool for computing requirement's coverage by tests and generating relevant reports.
11
-
The application provides a convenient interface for analysis the relationships between test cases and requirements.
10
+
**Test2Text** is a tool for computing requirement's coverage by tests and generating relevant reports.
11
+
The application provides a convenient interface for analysis the relationships between test cases and requirements.
12
12
""")
13
13
st.divider()
14
14
st.markdown("""
15
15
## HOW TO USE
16
16
17
17
### Upload data
18
-
Click :gray-badge[:material/database_upload: Annotations] or :gray-badge[:material/database_upload: Requirements] to upload annotations and requirements from CSV files to the app's database.
18
+
Click :gray-badge[:material/database_upload: Annotations] or :gray-badge[:material/database_upload: Requirements] to upload annotations and requirements from CSV files to the app's database.
19
19
20
20
### Renew data
21
-
Click :gray-badge[:material/cached: Controls] to transform missed and new texts into numeral vectors (embeddings).
22
-
Update distances by embeddings for intelligent matching of requirements and annotations.
21
+
Click :gray-badge[:material/cached: Controls] to transform missed and new texts into numeral vectors (embeddings).
22
+
Update distances by embeddings for intelligent matching of requirements and annotations.
23
23
24
24
### Generate reports
25
-
Click :gray-badge[:material/publish: Requirement's Report] or :gray-badge[:material/publish: Test cases Report] to make a report.
26
-
Use filters to select desired information. Analyze selected requirements or test cases by showed and plotted distances
25
+
Click :gray-badge[:material/publish: Requirement's Report] or :gray-badge[:material/publish: Test cases Report] to make a report.
26
+
Use filters to select desired information. Analyze selected requirements or test cases by showed and plotted distances
27
27
28
28
### Visualize saved data
29
-
Click :gray-badge[:material/dataset: Visualize vectors] to plot distances between vector representations of all requirements and annotations.
29
+
Click :gray-badge[:material/dataset: Visualize vectors] to plot distances between vector representations of all requirements and annotations.
30
30
31
31
""")
32
32
st.divider()
33
33
st.markdown("""
34
34
### Methodology
35
-
The application use a pre-trained transformer model from the [sentence-transformers library](https://huggingface.co/sentence-transformers), specifically [nomic-ai/nomic-embed-text-v1](https://huggingface.co/nomic-ai/nomic-embed-text-v1), a model trained to produce high-quality vector embeddings for text.
36
-
The model returns, for each input text, a high-dimensional NumPy array (vector) of floating point numbers (the embedding).
37
-
This arrays give us a possibility to calculate Euclidian distances between test cases annotations and requirements to view how similar or dissimilar the two texts.
35
+
The application use a pre-trained transformer model from the [sentence-transformers library](https://huggingface.co/sentence-transformers), specifically [nomic-ai/nomic-embed-text-v1](https://huggingface.co/nomic-ai/nomic-embed-text-v1), a model trained to produce high-quality vector embeddings for text.
36
+
The model returns, for each input text, a high-dimensional NumPy array (vector) of floating point numbers (the embedding).
37
+
This arrays give us a possibility to calculate Euclidian distances between test cases annotations and requirements to view how similar or dissimilar the two texts.
38
38
""")
39
39
40
40
st.markdown("""
41
41
#### Euclidean (L2) Distance Formula
42
-
The Euclidean (L2) distance is a measure of the straight-line distance between two points (or vectors) in a multidimensional space.
43
-
It is widely used to compute the similarity or dissimilarity between two vector representations, such as text embeddings.
42
+
The Euclidean (L2) distance is a measure of the straight-line distance between two points (or vectors) in a multidimensional space.
43
+
It is widely used to compute the similarity or dissimilarity between two vector representations, such as text embeddings.
44
44
""")
45
45
st.markdown("""
46
-
Suppose we have two vectors:
47
-
""")
48
-
st.latex(r"""
49
-
[ \mathbf{a} = [a_1, a_2, ..., a_n] ],
46
+
Suppose we have two vectors:
50
47
""")
51
48
st.latex(r"""
52
-
[ \mathbf{b} = [b_1, b_2, ..., b_n] ]
53
-
""")
49
+
[ \mathbf{a} = [a_1, a_2, ..., a_n] ],
50
+
""")
51
+
st.latex(r"""
52
+
[ \mathbf{b} = [b_1, b_2, ..., b_n] ]
53
+
""")
54
54
55
55
st.markdown("""
56
-
The L2 distance between **a** and **b** is calculated as:
57
-
""")
56
+
The L2 distance between **a** and **b** is calculated as:
0 commit comments