Skip to content

Commit

Permalink
Add semantic stack diagrams
Browse files Browse the repository at this point in the history
  • Loading branch information
bigadsoleiman committed Jul 7, 2023
1 parent 3420cc2 commit df93525
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,16 @@ This stack also incorporates "model adapters", enabling the setup of different p
### [Optional] Semantic Search Stack
This stack is `disabled` by default. To enable it update [bin/aws-genai-llm-chatbot.ts](./bin/aws-genai-llm-chatbot.ts#L13)

![sample](assets/semantic/architecture.jpg "Semantic Stack Architecture Diagram")

An optional semantic search stack that deploys:
- A vector database via a custom construct built on top of PostgreSQL on RDS with pgvector.
- An embeddings model on SageMaker to generate embeddings.
- Encoders model on SageMaker used to rank sentences by similarity.
- An S3 bucket to store documents that, once uploaded, are automatically split up, converted into embeddings, and stored in the vector database.
- A Lambda function showcasing how to run hybrid search with pgvector. This function also serves as the entry point for this stack.

![sample](assets/semantic/vectordb-query.jpg "Life of a query")

## [Optional] User Interface
This stack is `enabled` by default. To disable it update [bin/aws-genai-llm-chatbot.ts](./bin/aws-genai-llm-chatbot.ts#L12)
Expand Down
Binary file added assets/semantic/architecture.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/semantic/vectordb-query.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit df93525

Please sign in to comment.