generative-ai-immersion-day's People
Forkers
atzev podulator candeemis erezzarum ronbalt flolight elsenhuc allela-roy nir-sh-automat-it gruizesteban herminefokou charlienbailey marcelcastrobr christian-kam senatoredu tingyili ajenie7868 amit873 vaquarkhangenerative-ai-immersion-day's Issues
The top of the readme should explain what's included in the immersion day
For example:
Lab 1 - Hosting Large Language Models can be found in the lab1 directory. Start with the notebook gpt-j-notebook-full.ipynb.
Lab 2 - Finetuning Large Language Models can be found in the lab2 directory. Start with the notebook fine-tuning.ipynb.
Kendra can only be queried in English, returning empty if documents are in another language
A small edit can be done to the kendra_results.py
file to make sure that the dominant language of the query is detected and used as filter in the Kendra query.
The gist of the file can be found here: https://gist.github.com/dgallitelli/db5816e3bbc1b3014f5cac3bcea8a0a0
The code that needs to be changed is:
[...]
def kendra_query(kclient, kquery, kcount, kindex_id):
query_dominant_language = boto3.client('comprehend').detect_dominant_language(Text=query)["Languages"][0]["LanguageCode"]
response = kclient.query(
IndexId=kindex_id,
QueryText=kquery.strip(),
AttributeFilter = {
"EqualsTo": {
"Key": "_language_code",
"Value": {"StringValue": query_dominant_language}
}
}
)
[...]
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.