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
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.
230
227
231
-
The application performs the following steps:
228
+
The application performs the following steps:
232
229
233
230
1. Accepts a _topic_ as input from the user
234
231
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 :
237
234
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.
238
235
The documents retrieved in step #3 are passed as _context_ to the Chat API and are the key link in Generative AI.
239
236
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
242
239
variable `OPENAI_API_KEY`. The OpenAI API key can be obtained after registering at https://platform.openai.com.
243
240
244
241
```shell
@@ -260,7 +257,7 @@ England and Wales have hosted the Cricket World Cup the most times, with the tou
0 commit comments