Update rag_langchain.py
Browse files- rag_langchain.py +4 -0
rag_langchain.py
CHANGED
@@ -16,6 +16,10 @@ from langchain.vectorstores import MongoDBAtlasVectorSearch
|
|
16 |
from pymongo import MongoClient
|
17 |
from rag_base import BaseRAG
|
18 |
|
|
|
|
|
|
|
|
|
19 |
class LangChainRAG(BaseRAG):
|
20 |
MONGODB_DB_NAME = "langchain_db"
|
21 |
|
|
|
16 |
from pymongo import MongoClient
|
17 |
from rag_base import BaseRAG
|
18 |
|
19 |
+
os.environ["LANGCHAIN_ENDPOINT"] = "https://api.smith.langchain.com"
|
20 |
+
os.environ["LANGCHAIN_PROJECT"] = "openai-llm-agent"
|
21 |
+
os.environ["LANGCHAIN_TRACING_V2"] = "true"
|
22 |
+
|
23 |
class LangChainRAG(BaseRAG):
|
24 |
MONGODB_DB_NAME = "langchain_db"
|
25 |
|