aws-samples / amazon-kendra-langchain-extensions

Samples to build Generative AI applications with LangChain and Amazon Kendra
https://aws.amazon.com/blogs/machine-learning/quickly-build-high-accuracy-generative-ai-applications-on-enterprise-data-using-amazon-kendra-langchain-and-large-language-models/
MIT No Attribution
158 stars 104 forks source link

Cleaning kendra-docs-index.yaml #25

Open jwdinkel opened 1 year ago

jwdinkel commented 1 year ago

Fixed python import and Use Sub instead of Join to make code more readable.

Issue #, if available:

Description of changes: I have removed the import of random, which was not used. I have also changed code to use inline variables rather than the multi-line syntax that was used before with Sub and with Join. This reduces the code by 30 lines and makes it look much cleaner in code editors that highlight the variables. In addition, the Type fields are consistent now with quotes rather than having just some that are quoted in the prior version. And I corrected a small grammar error in the comment.

Hopefully, you will agree, this is much cleaner.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.