Giter Site home page Giter Site logo

zaaachos / genai-rag-agent Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.15 MB

Your GenAI RAG-based Virtual Agent

License: Apache License 2.0

Python 78.87% HTML 21.13%
ai genai genai-chatbot genai-chatbot-api gpt-4 gpt-4-1106-preview gpt-4-api llm pinecone rag retrieval-augmented-generation vector-database wikipedia

genai-rag-agent's Introduction

GenAI-RAG-Agent

Welcome to GenAI-RAG Agent, your cutting-edge virtual Agent powered by Generative AI (GenAI) models and the innovative Retrieval-Augmented Generation (RAG) approach!

About

GenAI-RAG Agent is designed to be your ultimate companion, providing precise and relevant answers to your queries through state-of-the-art AI technology. With the integration of the RAG model, GenAI-RAG Agent ensures that you receive accurate information tailored to your needs.

Features

  • Advanced AI Capabilities: Leveraging Generative AI (GenAI) models for intelligent responses.
  • Retrieval-Augmented Generation (RAG): Incorporating the RAG model for precise and relevant answers. Used Pinecone for Vector Database.
  • Web API: Simple FastAPI interface for user-agent interaction.

Getting Started

To start using GenAI-RAG Agent, follow these simple steps:

1. Environment Setup

Follow these steps to set up your environment:

  • Clone the Repository:
git clone https://github.com/zaaachos/GenAI-RAG-Agent.git
  • Install Dependencies:

It is highly recommended, to use conda as your virtual enviroment:

conda create -n chatbot python=3.9
conda activate chatbot

2. Dependencies

Install the necessary dependencies by running:

pip install -r requirements.txt

You will also need to have an Azure subscription, and create an .env file having the following variables:

AZURE_OPENAI_API_KEY=<YOUR_OPENAI_KEY>
OPENAI_MODEL_NAME=<YOUR_OPENAI_MODEL>
OPENAI_MODEL_VERSION=<YOUR_VERSION>
OPENAI_MODEL_DEPLOYMENT_VERSION=<YOUR_OPENAI_DEPLOYMENT_MODEL>
AZURE_OPENAI_ENDPOINT=<YOUR_OPENAI_ENDPOINT>
OPENAI_API_TYPE=azure
OPENAI_API_VERSION=2023-07-01-preview
PINECONE_API_KEY=<YOUR_PINECONE_KEY>
PINECONE_INDEX_NAME=<YOUR_PINECONE_INDEX>
EMBEDDINGS_MODEL_NAME=<YOUR_OPENAI_EMBEDDING>

3. Application

Run the Application Locally. Once dependencies are installed, you can run the FastAPI application locally by executing:

uvicorn main:app --reload

This will start the uvicorn server, and you can access the application at http://localhost:8000 in your web browser.

genai-rag-agent's People

Contributors

zaaachos avatar

Stargazers

Thanos Masouris avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.