File size: 401 Bytes
99a3f34
 
 
 
 
 
10330bc
 
 
 
99a3f34
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
import os
from langchain.embeddings.openai import OpenAIEmbeddings
from langchain.text_splitter import RecursiveCharacterTextSplitter



class Config:
    temperature = 0
    streaming = True
    chain_type = "stuff"
    max_token_limit = 4098
    embeddings = OpenAIEmbeddings(api_key=os.getenv('OPENAI_API_KEY'))
    text_splitter = RecursiveCharacterTextSplitter(chunk_size=1000, chunk_overlap=100)