Skip to content

Instantly share code, notes, and snippets.

@aarushik93
aarushik93 / stoic_bot.py
Created April 28, 2023 19:46
stoic_bot
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
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"
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
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"