Skip to content

FrsECM/rag_langchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RAG Pipeline

This repo contains tools in order to create a RAG Pipeline.

Installation

conda create -n langchain_dev python=3.8
conda activate langcahin_dev
pip install -r requirements.txt

Create a .env file with :

OPENAI_API_KEY='<AZURE_OPENAI_API_KEY>'
OPENAI_BASE_URL="<AZURE_OPENAI_URL>"
OPENAI_MODEL="gpt-35-turbo-16k"
PYTHONPATH="."

You can either setup environment variables inside conda env...

# OPENAI API
conda env config vars set OPENAI_API_KEY='<AZURE_OPENAI_API_KEY>'
conda env config vars set OPENAI_BASE_URL='<OPENAI_BASE_URL>'
conda env config vars set OPENAI_MODEL='<OPENAI_MODEL>'
# LEGIFRANCE
conda env config vars set PISTE_CLIENT_ID='<PISTE_CLIENT_ID>'
conda env config vars set PISTE_CLIENT_SECRET='<PISTE_CLIENT_SECRET>'

conda env config vars list

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published