Skip to content

Commit d123c50

Browse files
authored
Merge pull request #148 from lhgmnn/sample/rfp-answers-with-genai
Add new sample: RFP Answers with Generative AI
2 parents 066850d + c7fdeaf commit d123c50

File tree

123 files changed

+8240
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

123 files changed

+8240
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ This repo provides samples to demonstrate how to build your own Generative AI so
2222
|[Contract Compliance Analysis](samples/contract-compliance-analysis/)| This project automates the analysis of contracts by splitting them into clauses, determining clause types, evaluating compliance against a customer's legal guidelines, and assessing overall contract risk based on the number of compliant clauses. This is achieved through a workflow that leverages Large Language Models via Amazon Bedrock. | Backend + Frontend | Python for Backend, TypeScript (React) for Frontend |
2323
|[Text To SQL](samples/text-to-sql/)| The "Text To SQL" generative AI sample application solution enables users to interact with databases through natural language queries, eliminating the need for extensive SQL knowledge. This application leverages the powerful Anthropic Claude 3 model, hosted on Amazon Bedrock, to translate natural language queries into executable SQL statements seamlessly. | Backend + Frontend | Python for Backend, TypeScript (React) for Frontend |
2424
|[LlamaIndex Basic DataLoader](samples/llamaindex-basic-data-loader/)| The "LlamaIndex Basic Data Loader" generative AI sample application solution demonstrates the `LlamaIndexDataLoader` from the [Generative AI CDK Constructs](https://github.com/awslabs/generative-ai-cdk-constructs) package. The default implementation uses the [S3 File or Directory Loader](https://github.com/run-llama/llama_index/tree/main/llama-index-integrations/readers/llama-index-readers-s3), and can be extended for other [LlamaHub Readers](https://llamahub.ai/?tab=readers). The solution expects [LlamaIndex Documents](https://docs.llamaindex.ai/en/stable/module_guides/loading/documents_and_nodes/) into an output S3 ready for downstream consumer generative AI solutions. | Backend | Python |
25+
|[RFP Answers with GenAI](samples/rfp-answer-generation/)| This project provides guidance on how you can use Knowledge Bases for Amazon Bedrock with custom transformations to create draft answers for Request for Proposal (RFP) documents, streamlining the answer of new potential contracts. This is achieved through a workflow that leverages Large Language Models via Amazon Bedrock. | Backend + Frontend | Python for Backend, TypeScript (React) for Frontend |
2526

2627
## Contributing
2728

Lines changed: 300 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,300 @@
1+
*.swp
2+
package-lock.json
3+
__pycache__
4+
.pytest_cache
5+
.venv
6+
*.egg-info
7+
*.xlsx
8+
9+
node_modules/
10+
11+
# CDK asset staging directory
12+
.cdk.staging
13+
cdk.out
14+
15+
### JetBrains+all ###
16+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
17+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
18+
19+
# User-specific stuff
20+
.idea/**/workspace.xml
21+
.idea/**/tasks.xml
22+
.idea/**/usage.statistics.xml
23+
.idea/**/dictionaries
24+
.idea/**/shelf
25+
26+
# AWS User-specific
27+
.idea/**/aws.xml
28+
29+
# Generated files
30+
.idea/**/contentModel.xml
31+
32+
# Sensitive or high-churn files
33+
.idea/**/dataSources/
34+
.idea/**/dataSources.ids
35+
.idea/**/dataSources.local.xml
36+
.idea/**/sqlDataSources.xml
37+
.idea/**/dynamic.xml
38+
.idea/**/uiDesigner.xml
39+
.idea/**/dbnavigator.xml
40+
41+
# Gradle
42+
.idea/**/gradle.xml
43+
.idea/**/libraries
44+
45+
# Gradle and Maven with auto-import
46+
# When using Gradle or Maven with auto-import, you should exclude module files,
47+
# since they will be recreated, and may cause churn. Uncomment if using
48+
# auto-import.
49+
# .idea/artifacts
50+
# .idea/compiler.xml
51+
# .idea/jarRepositories.xml
52+
# .idea/modules.xml
53+
# .idea/*.iml
54+
# .idea/modules
55+
# *.iml
56+
# *.ipr
57+
58+
# CMake
59+
cmake-build-*/
60+
61+
# Mongo Explorer plugin
62+
.idea/**/mongoSettings.xml
63+
64+
# File-based project format
65+
*.iws
66+
67+
# IntelliJ
68+
out/
69+
70+
# mpeltonen/sbt-idea plugin
71+
.idea_modules/
72+
73+
# JIRA plugin
74+
atlassian-ide-plugin.xml
75+
76+
# Cursive Clojure plugin
77+
.idea/replstate.xml
78+
79+
# SonarLint plugin
80+
.idea/sonarlint/
81+
82+
# Crashlytics plugin (for Android Studio and IntelliJ)
83+
com_crashlytics_export_strings.xml
84+
crashlytics.properties
85+
crashlytics-build.properties
86+
fabric.properties
87+
88+
# Editor-based Rest Client
89+
.idea/httpRequests
90+
91+
# Android studio 3.1+ serialized cache file
92+
.idea/caches/build_file_checksums.ser
93+
94+
### JetBrains+all Patch ###
95+
# Ignore everything but code style settings and run configurations
96+
# that are supposed to be shared within teams.
97+
98+
.idea/*
99+
.ipynb_checkpoints/
100+
101+
!.idea/codeStyles
102+
!.idea/runConfigurations
103+
104+
### Linux ###
105+
*~
106+
107+
# temporary files which can be created if a process still has a handle open of a deleted file
108+
.fuse_hidden*
109+
110+
# KDE directory preferences
111+
.directory
112+
113+
# Linux trash folder which might appear on any partition or disk
114+
.Trash-*
115+
116+
# .nfs files are created when an open file is removed but is still being accessed
117+
.nfs*
118+
119+
### macOS ###
120+
# General
121+
.DS_Store
122+
.AppleDouble
123+
.LSOverride
124+
125+
# Icon must end with two \r
126+
Icon
127+
128+
129+
# Thumbnails
130+
._*
131+
132+
# Files that might appear in the root of a volume
133+
.DocumentRevisions-V100
134+
.fseventsd
135+
.Spotlight-V100
136+
.TemporaryItems
137+
.Trashes
138+
.VolumeIcon.icns
139+
.com.apple.timemachine.donotpresent
140+
141+
# Directories potentially created on remote AFP share
142+
.AppleDB
143+
.AppleDesktop
144+
Network Trash Folder
145+
Temporary Items
146+
.apdisk
147+
148+
### PythonVanilla ###
149+
# Byte-compiled / optimized / DLL files
150+
__pycache__/
151+
*.py[cod]
152+
*$py.class
153+
154+
# C extensions
155+
*.so
156+
157+
# Distribution / packaging
158+
.Python
159+
build/
160+
develop-eggs/
161+
dist/
162+
downloads/
163+
eggs/
164+
.eggs/
165+
backend/lib/
166+
lib64/
167+
parts/
168+
sdist/
169+
var/
170+
wheels/
171+
share/python-wheels/
172+
*.egg-info/
173+
.installed.cfg
174+
*.egg
175+
MANIFEST
176+
177+
# Installer logs
178+
pip-log.txt
179+
pip-delete-this-directory.txt
180+
181+
# Unit test / coverage reports
182+
htmlcov/
183+
.tox/
184+
.nox/
185+
.coverage
186+
.coverage.*
187+
.cache
188+
nosetests.xml
189+
coverage.xml
190+
*.cover
191+
*.py,cover
192+
.hypothesis/
193+
.pytest_cache/
194+
cover/
195+
196+
# Translations
197+
*.mo
198+
*.pot
199+
200+
# pyenv
201+
# For a library or package, you might want to ignore these files since the code is
202+
# intended to run in multiple environments; otherwise, check them in:
203+
# .python-version
204+
205+
# pipenv
206+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
207+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
208+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
209+
# install all needed dependencies.
210+
#Pipfile.lock
211+
212+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
213+
__pypackages__/
214+
215+
216+
### VisualStudioCode ###
217+
.vscode/*
218+
!.vscode/settings.json
219+
!.vscode/tasks.json
220+
!.vscode/launch.json
221+
!.vscode/extensions.json
222+
!.vscode/*.code-snippets
223+
224+
# Local History for Visual Studio Code
225+
.history/
226+
227+
# Built Visual Studio Code Extensions
228+
*.vsix
229+
230+
### VisualStudioCode Patch ###
231+
# Ignore all local history of files
232+
.history
233+
.ionide
234+
235+
# Support for Project snippet scope
236+
237+
### Windows ###
238+
# Windows thumbnail cache files
239+
Thumbs.db
240+
Thumbs.db:encryptable
241+
ehthumbs.db
242+
ehthumbs_vista.db
243+
244+
# Dump file
245+
*.stackdump
246+
247+
# Folder config file
248+
[Dd]esktop.ini
249+
250+
# Recycle Bin used on file shares
251+
$RECYCLE.BIN/
252+
253+
# Windows Installer files
254+
*.cab
255+
*.msi
256+
*.msix
257+
*.msm
258+
*.msp
259+
260+
# Windows shortcuts
261+
*.lnk
262+
263+
# Application-specific
264+
**/answer_question_fn/app/processor.py
265+
**/answer_question_fn/app/utils.py
266+
**/custom_chunking_handler_fn/app/processor.py
267+
**/custom_chunking_handler_fn/app/utils.py
268+
**/preprocess_fn/app/processor.py
269+
**/preprocess_fn/app/utils.py
270+
271+
272+
!jest.config.js
273+
# *.d.ts
274+
node_modules
275+
276+
# Logs
277+
logs
278+
*.log
279+
npm-debug.log*
280+
yarn-debug.log*
281+
yarn-error.log*
282+
pnpm-debug.log*
283+
lerna-debug.log*
284+
285+
dist
286+
dist
287+
dist-ssr
288+
*.local
289+
290+
# Editor directories and files
291+
.vscode/*
292+
!.vscode/extensions.json
293+
.idea
294+
.DS_Store
295+
*.suo
296+
*.ntvs*
297+
*.njsproj
298+
*.sln
299+
*.sw?
300+
.env

0 commit comments

Comments
 (0)