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: src/content/docs/reference-architecture/diagrams/ai/ai-asset-creation.mdx
+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
@@ -35,12 +35,12 @@ Example uses of such compositions of AI models can be employed to generation vis
35
35
36
36
1.**Client upload**: Send POST request with content to API endpoint.
37
37
2.**Prompt generation**: Generate prompt for later-stage text-to-image model by calling [Workers AI](/workers-ai/)[text generation models](/workers-ai/models/) with content as input.
38
-
3.**Safety check**: Check for compliance with safety guidelines by calling [Workers AI](/workers-ai/)[text classification models](/workers-ai/models/#text-classification) with the previously generated prompt as input.
3.**Safety check**: Check for compliance with safety guidelines by calling [Workers AI](/workers-ai/)[text classification models](/workers-ai/models/) with the previously generated prompt as input.
Copy file name to clipboardExpand all lines: src/content/docs/reference-architecture/diagrams/ai/ai-rag.mdx
+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
@@ -32,7 +32,7 @@ In the context of Retrieval-Augmented Generation (RAG), knowledge seeding involv
32
32
1.**Client upload**: Send POST request with documents to API endpoint.
33
33
2.**Input processing**: Process incoming request using [Workers](/workers/) and send messages to [Queues](/queues/) to add processing backlog.
34
34
3.**Batch processing**: Use [Queues](/queues/) to trigger a [consumer](/queues/reference/how-queues-works/#consumers) that process input documents in batches to prevent downstream overload.
35
-
4.**Embedding generation**: Generate embedding vectors by calling [Workers AI](/workers-ai/)[text embedding models](/workers-ai/models/#text-embeddings) for the documents.
35
+
4.**Embedding generation**: Generate embedding vectors by calling [Workers AI](/workers-ai/)[text embedding models](/workers-ai/models/) for the documents.
36
36
5.**Vector storage**: Insert the embedding vectors to [Vectorize](/vectorize/).
37
37
6.**Document storage**: Insert documents to [D1](/d1/) for persistent storage.
38
38
7.**Ack/Retry mechanism**: Signal success/error by using the [Queues Runtime API](/queues/configuration/javascript-apis/#message) in the consumer for each document. [Queues](/queues/) will schedule retries, if needed.
@@ -42,13 +42,13 @@ In the context of Retrieval-Augmented Generation (RAG), knowledge seeding involv
1.**Client query**: Send GET request with query to API endpoint.
45
-
2.**Embedding generation**: Generate embedding vectors by calling [Workers AI](/workers-ai/)[text embedding models](/workers-ai/models/#text-embeddings) for the incoming query.
45
+
2.**Embedding generation**: Generate embedding vectors by calling [Workers AI](/workers-ai/)[text embedding models](/workers-ai/models/) for the incoming query.
46
46
3.**Vector search**: Query [Vectorize](/vectorize/) using the vector representation of the query to retrieve related vectors.
47
47
4.**Document lookup**: Retrieve related documents from [D1](/d1/) based on search results from [Vectorize](/vectorize/).
48
48
5.**Text generation**: Pass both the original query and the retrieved documents as context to [Workers AI](/workers-ai/)[text generation models](/workers-ai/models/#text-generation) to generate a response.
49
49
50
50
## Related resources
51
51
52
52
-[Tutorial: Build a RAG AI](/workers-ai/tutorials/build-a-retrieval-augmented-generation-ai/)
53
-
-[Workers AI: Text embedding models](/workers-ai/models/#text-embeddings)
53
+
-[Workers AI: Text embedding models](/workers-ai/models/)
54
54
-[Workers AI: Text generation models](/workers-ai/models/#text-generation)
0 commit comments