Skip to content

shaunjl/aws-chat-with-confluence

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🛠️ WIP 🛠️

This is currently a Work in Progress, it is basically an implementation plan.

To see a working version that uses OpenAI and open source, see chat-with-confluence

Overview

The intention of this repo is to use Embedded Vector Store and an LLM to chat with your confluence docs while assuming that you only have an AWS license - no OpenAI, no other vector store service, nothing else.

Details

Approach (assuming you don't have access to Amazon Bedrock)

  1. Create an embedding vector store of the Confluence docs
  1. use the embedding vector store to get relevant texts from the store
  • Create an embedding of the question (also using HuggingFace)
  • Perform similarity search in the vector store using the question embedding to get relevant texts from the store
  1. provide the llm with the received texts + question as a prompt to answer the question

Alternative Approach assuming you have access to Bedrock 🪨

Amazon Bedrock is under "Limited Beta Preview" and it's super hard to get into the beta. I suspect this soution would be better. Here is how I would do it. The main differences are bolded

  1. Create an embedding vector store of the Confluence docs
  1. use the embedding vector store to get relevant texts from the store
  • (different) Create an embedding of the question (also using langchain.embedddings.BedrockEmbeddings)
  • Perform similarity search in the vector store using the question embedding to get relevant texts from the store
  1. provide the llm with the received texts + question as a prompt to answer the question

License

MIT License

About

Use Embedded Vector Store and an LLM to chat with confluence, all with only langchain and AWS utils (Bedrock, OpenSearch, Claude 2)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors