Cogniswitch Toolkit
CogniSwitch is used to build production ready applications that can consume, organize and retrieve knowledge flawlessly. Using the framework of your choice, in this case Langchain, CogniSwitch helps alleviate the stress of decision making when it comes to, choosing the right storage and retrieval formats. It also eradicates reliability issues and hallucinations when it comes to responses that are generated.
Setupโ
Visit this page to register a Cogniswitch account.
-
Signup with your email and verify your registration
-
You will get a mail with a platform token and oauth token for using the services.
%pip install -qU langchain-community
Import necessary librariesโ
import warnings
warnings.filterwarnings("ignore")
import os
from langchain.agents.agent_toolkits import create_conversational_retrieval_agent
from langchain_community.agent_toolkits import CogniswitchToolkit
from langchain_openai import ChatOpenAI