This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from langchain import LLMChain | |
from langchain.agents import AgentExecutor, Tool,ConversationalAgent | |
from langchain.memory import ConversationBufferMemory | |
from langchain.utilities import GoogleSerperAPIWrapper, OpenWeatherMapAPIWrapper | |
from langchain.chat_models import ChatOpenAI | |
from nemoguardrails import LLMRails, RailsConfig | |
COLANG_CONFIG = """ | |
define user express greeting | |
"hi" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from langchain import OpenAI | |
from langchain.utilities import GoogleSerperAPIWrapper | |
from langchain.chains import GraphCypherQAChain | |
from langchain.graphs import Neo4jGraph | |
from langchain.agents import initialize_agent, Tool | |
from langchain.chat_models import ChatOpenAI | |
from langchain.memory import ConversationBufferMemory, ReadOnlySharedMemory | |
from langchain.agents import AgentType | |
from langchain.prompts.prompt import PromptTemplate | |
import os |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import weaviate | |
import csv | |
import openai | |
from weaviate.util import generate_uuid5, get_valid_uuid | |
from uuid import uuid4 | |
OPENAI_API_KEY = "YOUR KEY" | |
WEAVIATE_URL = "YOUR URL" | |
openai.api_key = "YOUR KEY" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import streamlit as st | |
from langchain import LLMChain, OpenAI | |
from langchain.agents import AgentExecutor, Tool, ZeroShotAgent, ReActTextWorldAgent, initialize_agent | |
from langchain.chains import RetrievalQA, ConversationalRetrievalChain | |
from langchain.vectorstores.weaviate import Weaviate | |
from langchain.llms import OpenAI | |
from langchain.memory import ConversationBufferMemory | |
import weaviate | |
from langchain.utilities import GoogleSerperAPIWrapper | |
from langchain.chat_models import ChatOpenAI |