aws-samples / serverless-rag-demo

Amazon Bedrock Anthropic Claude, (Llama2-7B/13B/70B /Falcon-7B/40B/180B on Amazon Sagemaker) LLMs with Amazon Opensearch Serverless as a Vector DB
https://aws.amazon.com/blogs/big-data/build-scalable-and-serverless-rag-workflows-with-a-vector-engine-for-amazon-opensearch-serverless-and-amazon-bedrock-claude-models/
MIT No Attribution
139 stars 39 forks source link

Updating the code (question not issue...) #70

Closed mdcox closed 7 months ago

mdcox commented 7 months ago

Hello,

I am working with this awesome project and I have everything working from the base image, great work I love it!

I am however wondering if the only current way to update the html page is to make the updates and then re-run creator.sh. I don't see any other mentions of updating the scripts and I am new-ish to code build so I am not sure if there is a better route to take?

I have tried this route and in codebuild, it says the build was successful but I do not see any html changes, now this could be due to errors in the deployment so I have been checking those.

Thank you for any support!

Fraser27 commented 7 months ago

Hi @mdcox , The html is rendered through a Lambda function (llm-html-generator-dev). Search for **llm-html-generator-*** lambda function in your AWS region of deployment. Explore the function's code directory, under the content folder you'll find the HTML page(rag_bedrock.html) that you could easily edit without having to redeploy the entire stack. Hope this helps

mdcox commented 7 months ago

Ahh yes that makes so much sense haha thank you very much!