Skip to content

Update examples in legal assistant #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jun 7, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Delete unneccessary block in code
  • Loading branch information
Khalid Rajan committed Jun 6, 2024
commit 4de8cd4ed93b3404941de8315f52e86a294f809c
2 changes: 1 addition & 1 deletion cpi_pdf_langchain_chatbot.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.14"
"version": "3.1.-1"
}
},
"nbformat": 4,
Expand Down
22 changes: 0 additions & 22 deletions legal_assistant_csv_langchain_chatbot.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -63,28 +63,6 @@
"dotenv.load_dotenv(\".env\", override=True)"
]
},
{
"cell_type": "code",
"execution_count": 48,
"metadata": {},
"outputs": [],
"source": [
"import pandas as pd\n",
"import openai\n",
"import langchain\n",
"import os\n",
"from langchain_community.document_loaders.csv_loader import CSVLoader\n",
"from langchain_community.vectorstores import FAISS\n",
"from langchain_openai import OpenAIEmbeddings\n",
"from langchain.text_splitter import RecursiveCharacterTextSplitter\n",
"from langchain.tools.retriever import create_retriever_tool\n",
"from langchain_community.tools.you import YouSearchTool\n",
"from langchain_community.utilities.you import YouSearchAPIWrapper\n",
"from langchain_openai import ChatOpenAI\n",
"from langgraph.prebuilt import chat_agent_executor\n",
"from langgraph.checkpoint import MemorySaver"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down