Skip to content

Commit 9a7d774

Browse files
authored
Minor formatting fixes
1 parent 4eff3ac commit 9a7d774

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

docs/getting-started/example-datasets/dbpedia.md

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ ORDER BY cosineDistance(vector, (
148148
)) ASC
149149
LIMIT 20
150150
151-
┌─id──────────────────────────────────────────────┬─title─────────────────────────────────┐
151+
```response title="Response" ┌─id──────────────────────────────────────────────┬─title─────────────────────────────────┐
152152
1. │ <dbpedia:Glacier_Express> │ Glacier Express │
153153
2. │ <dbpedia:BVZ_Zermatt-Bahn> │ BVZ Zermatt-Bahn │
154154
3. │ <dbpedia:Gornergrat_railway> │ Gornergrat railway │
@@ -170,11 +170,8 @@ LIMIT 20
170170
19. │ <dbpedia:Regional-Express> │ Regional-Express │
171171
20. │ <dbpedia:Schynige_Platte_railway> │ Schynige Platte railway │
172172
└─────────────────────────────────────────────────┴───────────────────────────────────────┘
173-
173+
#highlight-next-line
174174
20 rows in set. Elapsed: 0.025 sec. Processed 32.03 thousand rows, 2.10 MB (1.29 million rows/s., 84.80 MB/s.)
175-
```
176-
Compare the latency and I/O resource usage of the above query with the earlier query executed
177-
using brute force KNN.
178175

179176
## Generating embeddings for search query {#generating-embeddings-for-search-query}
180177

@@ -224,11 +221,11 @@ while True:
224221
print("---------------")
225222
```
226223
227-
## Q & A Demo Application {#q-and-a-demo-application}
224+
## Q&A demo application {#q-and-a-demo-application}
228225
229-
Above examples demonstrated semantic search and document retrieval using ClickHouse. A very simple but high potential Generative AI example application is presented now.
226+
The examples above demonstrated semantic search and document retrieval using ClickHouse. A very simple but high potential generative AI example application is presented next.
230227
231-
The application performs the following steps :
228+
The application performs the following steps:
232229
233230
1. Accepts a _topic_ as input from the user
234231
2. Generates an embedding vector for the _topic_ by invoking OpenAI API with model `text-embedding-3-large`
@@ -237,8 +234,8 @@ The application performs the following steps :
237234
5. Uses the OpenAI `gpt-3.5-turbo` Chat API to answer the question based on the knowledge in the documents retrieved in step #3.
238235
The documents retrieved in step #3 are passed as _context_ to the Chat API and are the key link in Generative AI.
239236
240-
A couple of conversation examples by running the Q & A application are first listed below, followed by the code
241-
for the Q & A application. Running the application requires an OpenAI API key to be set in the environment
237+
A couple of conversation examples by running the Q&A application are first listed below, followed by the code
238+
for the Q&A application. Running the application requires an OpenAI API key to be set in the environment
242239
variable `OPENAI_API_KEY`. The OpenAI API key can be obtained after registering at https://platform.openai.com.
243240
244241
```shell
@@ -260,7 +257,7 @@ England and Wales have hosted the Cricket World Cup the most times, with the tou
260257
$
261258
```
262259
263-
Code :
260+
Code:
264261
265262
```Python
266263
import sys

0 commit comments

Comments
 (0)