Spaces:
Runtime error
Runtime error
from langchain.chains import LLMChain | |
from langchain.prompts import PromptTemplate | |
from langchain.llms import OpenAI | |
import pandas as pd | |
from langchain_community.document_loaders.csv_loader import CSVLoader | |
from langchain_community.vectorstores import FAISS | |
from langchain_openai import OpenAIEmbeddings | |
from langchain_text_splitters import RecursiveCharacterTextSplitter | |
import os | |
from langchain.tools.retriever import create_retriever_tool | |
from langchain import hub | |
from langchain_openai import ChatOpenAI | |
from langchain.agents import AgentExecutor, create_openai_tools_agent | |
from langchain.schema import SystemMessage, AIMessage, HumanMessage | |
os.environ['OPENAI_API_KEY']=os.getenv('OPENAI_API_KEY') |