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: content/guides/genai-leveraging-rag/index.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ The system operates as follows:
35
35
2. These patterns help find matching information in a database
36
36
3. The LLM generates responses that blend the model's inherent knowledge with the this extra information.
37
37
38
-
To hold this vector information in an efficient manner, we need a special type of database.
38
+
To hold this vector information in an efficient manner, you need a special type of database.
39
39
40
40
## Introduction to Graph databases
41
41
@@ -110,7 +110,7 @@ The first startup may take some time because the system needs to download a larg
110
110
111
111
### Monitoring progress
112
112
113
-
We can monitor the download and initialization progress by viewing the logs. Run the following command to view the logs:
113
+
You can monitor the download and initialization progress by viewing the logs. Run the following command to view the logs:
114
114
115
115
```bash
116
116
docker compose logs
@@ -128,9 +128,9 @@ Wait for specific lines in the logs indicating that the download is complete and
128
128
129
129
You can now access the interface at [http://localhost:8501/](http://localhost:8501/) to ask questions. For example, you can try the sample question:
130
130
131
-
When we see those lines in the logs, web apps are ready to be used.
131
+
When those lines appear in the logs, the web apps are ready to use.
132
132
133
-
Since our goal is to teach AI about things it does not yet know, we begin by asking it a simple question about Nifi at
133
+
Since the goal is to teach AI about things it does not yet know, begin by asking it a simple question about Nifi at
134
134
[http://localhost:8501/](http://localhost:8501/).
135
135

136
136
@@ -140,13 +140,13 @@ RAG: Disabled
140
140
Hello! I'm here to help you with your question about Apache NiFi. Unfortunately, I don't know the answer to that question. I'm just an AI and my knowledge cutoff is December 2022, so I may not be familiar with the latest technologies or software. Can you please provide more context or details about Apache NiFi? Maybe there's something I can help you with related to it.
141
141
```
142
142
143
-
As we can see, AI does not know anything about this subject because it did not exist during the time of its training, also known as the information cutoff point.
143
+
As shown, the AI does not know anything about this subject because it did not exist during the time of its training, also known as the information cutoff point.
144
144
145
145
Now it's time to teach the AI some new tricks. First, connect to [http://localhost:8502/](http://localhost:8502/). Instead of using the "neo4j" tag, change it to the "apache-nifi" tag, then select the **Import** button.
146
146
147
147

148
148
149
-
After the import is successful, we can access Neo4j to verify the data.
149
+
After the import is successful, you can access Neo4j to verify the data.
150
150
151
151
After logging in to [http://localhost:7474/](http://localhost:7474/) using the credentials from the `.env` file, you can run queries on Neo4j. Using the Neo4j Cypher query language, you can check for the data stored in the database.
152
152
@@ -162,7 +162,7 @@ To execute this query, write in the box on the top and select the blue run butto
162
162
163
163

164
164
165
-
Results will appear below. What we are seeing here is the information system downloaded from Stack Overflow and saved in the graph database. RAG will utilize this information to enhance its responses.
165
+
Results will appear below. The information shown is downloaded from Stack Overflow and saved in the graph database. RAG will utilize this information to enhance its responses.
166
166
167
167
You can also run the following query to visualize the data:
168
168
@@ -176,7 +176,7 @@ To check the relationships in the database, run the following query:
176
176
CALL db.relationshipTypes()
177
177
```
178
178
179
-
Now, we are ready to enable our LLM to use this information. Go back to [http://localhost:8501/](http://localhost:8501/), enable the **RAG** checkbox, and ask the same question again. The LLM will now provide a more detailed answer.
179
+
You're ready to enable the LLM to use this information. Go back to [http://localhost:8501/](http://localhost:8501/), enable the **RAG** checkbox, and ask the same question again. The LLM will provide a more detailed answer.
180
180
181
181

182
182
@@ -209,7 +209,7 @@ For optimal results, choose a tag that the LLM is not familiar with.
209
209
210
210
### When to leverage RAG for optimal results
211
211
212
-
Retrieval-Augmented Generation (RAG) is particularly effective in scenarios where standard Large Language Models (LLMs) fall short. The three key areas where RAG excels are knowledge limitations, business requirements, and cost efficiency. Below, we explore these aspects in more detail.
212
+
Retrieval-Augmented Generation (RAG) is particularly effective in scenarios where standard Large Language Models (LLMs) fall short. The three key areas where RAG excels are knowledge limitations, business requirements, and cost efficiency. The following sections explore these aspects in more detail.
Copy file name to clipboardExpand all lines: content/guides/golang/develop.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -582,7 +582,7 @@ The exact value doesn't really matter for this example, because you run Cockroac
582
582
583
583
### Merging Compose files
584
584
585
-
The file name `compose.yaml` is the default file name which `docker compose` command recognizes if no `-f` flag is provided. This means you can have multiple Docker Compose files if your environment has such requirements. Furthermore, Docker Compose files are... composable (pun intended), so multiple files can be specified on the command line to merge parts of the configuration together. The following list is just a few examples of scenarios where such a feature would be very useful:
585
+
The file name `compose.yaml` is the default file name which `docker compose` command recognizes if no `-f` flag is provided. This means you can have multiple Docker Compose files if your environment has such requirements. Furthermore, Docker Compose files are... composable (pun intended), so multiple files can be specified on the command line to merge parts of the configuration together. The following list shows a few examples of scenarios where such a feature would be very useful:
586
586
587
587
- Using a bind mount for the source code for local development but not when running the CI tests;
588
588
- Switching between using a pre-built image for the frontend for some API application vs creating a bind mount for source code;
Copy file name to clipboardExpand all lines: content/guides/rust/run-containers.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -173,7 +173,7 @@ Run the `docker ps --all` command again to see that Docker removed all container
173
173
174
174
Now, it's time to address the random naming issue. Standard practice is to name your containers for the simple reason that it's easier to identify what's running in the container and what application or service it's associated with.
175
175
176
-
To name a container, you just need to pass the `--name` flag to the `docker run` command.
176
+
To name a container, pass the `--name` flag to the `docker run` command.
177
177
178
178
```console
179
179
$ docker run -d -p 3001:8000 --name docker-rust-container docker-rust-image-dhi
@@ -183,11 +183,11 @@ CONTAINER ID IMAGE COMMAND CREATED
183
183
219b2e3c7c38 docker-rust-image-dhi "/server" 6 seconds ago Up 5 seconds 0.0.0.0:3001->8000/tcp, [::]:3001->8000/tcp docker-rust-container
184
184
```
185
185
186
-
That’s better! You can now easily identify your container based on the name.
186
+
That’s better! You can now identify your container based on the name.
187
187
188
188
## Summary
189
189
190
-
In this section, you took a look at running containers. You also took a look at managing containers by starting, stopping, and restarting them. And finally, you looked at naming your containers so they are more easily identifiable.
190
+
In this section, you took a look at running containers. You also took a look at managing containers by starting, stopping, and restarting them. And finally, you looked at naming your containers so they are more identifiable.
0 commit comments