Vignana-Jyothi / kp-learnings

Curiosity & Learnings
GNU General Public License v3.0
1 stars 0 forks source link

[Gen AI] Build Basic Chat Engine #9

Closed head-iie-vnr closed 3 months ago

head-iie-vnr commented 3 months ago

input.txt validation.txt

Trained the system using basic text

Ran the server

uvicorn chat:app --reload

View the Results

curl -X POST "http://127.0.0.1:8000/chat" -H "Content-Type: application/json" -d '{"question": "Different types of generative AI models"}'
head-iie-vnr commented 3 months ago

Observations from the Results

Results

(base) kp@kuru:~/kp-learnings$ curl -X POST "http://127.0.0.1:8000/chat" -H "Content-Type: application/json" -d '{"question": "Different types of generative AI models"}' {"answer":"Different types of generative AI models:\n\nGenerative models are used to generate models that can be used to predict the future.\n\nGenerative models are used to generate models that can be used to predict the future. Generative models are used to generate models that can be used to predict the future.\n\nGenerative models are used to generate models that can be used to predict the future.\n\nGenerative models are used to generate models that can be used to predict the future.\n\nGenerative models are used to generate models that can be used to predict the future.\n\nGenerative models are used to generate models that can be used to predict the future.\n\nGenerative models are used to generate models that can be used to predict the future.\n\nGenerative models are used to generate models that can be used to predict the future.\n\nGenerative models are used to generate models that can be used to predict the future.\n\nGenerative models are used to generate models that can be used to predict the future.\n\nGenerative models are used to generate models that can be used to predict the future.\n\nGenerative models are used to generate models that can be used to predict the future.\n\nGenerative models are used to generate models that can be used to predict the future.\n\nGenerative models are used to generate models that can be used to predict the future.\n\nGenerative models are used to generate models that can be used to predict the future.\n\nGenerative models are used to generate models that can be used to predict the future.\n\nGenerative models are used to generate models that can be used to predict the future.\n\nGenerative models are used to generate models that can be used to predict the future.\n\nGenerative models are used to generate models that can be used to predict the future.\n\nGenerative models are used to generate models that can be used to predict the future.\n\nGenerative models are used to generate models that can be used to predict the future.\n\nGenerative models are used to generate models that can be used to predict the future.\n\nGenerative models are used to generate models that can be used to predict the future.\n\nGenerative models are used to generate models that can be used to predict the future.\n\nGenerative models are used to generate models that can be used to predict the future."}

head-iie-vnr commented 3 months ago

I need to improve the text quality by training with larger data.

That I will try to fix with next issue.

As of now time can be reduced by setting max_length=50