saayam-for-all / ai

Generative AI based micro service code. We plan to use Hugging Faces, Langchain etc.
0 stars 0 forks source link

Develop Flask API using Llama 2 Model #12

Open aatish-kayyath opened 2 months ago

aatish-kayyath commented 2 months ago

Flask-based Q&A Web API using Llama 2 Model

Implement a Flask-based web API that accepts user questions and generates answers using the Llama 2 model via the LangChain framework. The API consists of the following:

API Endpoints

Technical Details

Future Improvements

aatish-kayyath commented 2 months ago

Developed the code for a basic question answering system

aatish-kayyath commented 2 months ago

Developed a Flask API for the same and checked output using Postman

aatish-kayyath commented 2 months ago

Need to update your token using the huggingface-cli login command