austinbv commited on
Commit
861cd81
·
1 Parent(s): 3599e7c

add config to a module

Browse files
config.py → app/config.py RENAMED
File without changes
app/rag_chain.py CHANGED
@@ -8,7 +8,7 @@ from langchain_core.prompts import ChatPromptTemplate
8
  from langchain_core.runnables import RunnableParallel
9
  from langchain_openai import ChatOpenAI, OpenAIEmbeddings
10
 
11
- from config import PG_COLLECTION_NAME
12
 
13
  load_dotenv()
14
 
 
8
  from langchain_core.runnables import RunnableParallel
9
  from langchain_openai import ChatOpenAI, OpenAIEmbeddings
10
 
11
+ from app.config import PG_COLLECTION_NAME
12
 
13
  load_dotenv()
14
 
importer/load_and_process.py CHANGED
@@ -6,7 +6,7 @@ from langchain_community.vectorstores.pgvector import PGVector
6
  from langchain_experimental.text_splitter import SemanticChunker
7
  from langchain_openai import OpenAIEmbeddings
8
 
9
- from config import EMBEDDING_MODEL, PG_COLLECTION_NAME
10
 
11
  load_dotenv()
12
 
 
6
  from langchain_experimental.text_splitter import SemanticChunker
7
  from langchain_openai import OpenAIEmbeddings
8
 
9
+ from app.config import EMBEDDING_MODEL, PG_COLLECTION_NAME
10
 
11
  load_dotenv()
12