Skip to content

Commit

Permalink
upgrade langchain and pinecone, migrate from pnpm to yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
mayooear committed Apr 13, 2023
1 parent b00e3c0 commit 191e87c
Show file tree
Hide file tree
Showing 9 changed files with 3,576 additions and 3,713 deletions.
Binary file removed docs/finance/turingfinance.pdf
Binary file not shown.
Binary file removed docs/law/MorseVsFrederick.pdf
Binary file not shown.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
},
"dependencies": {
"@microsoft/fetch-event-source": "^2.0.1",
"@pinecone-database/pinecone": "^0.0.10",
"@pinecone-database/pinecone": "0.0.12",
"@radix-ui/react-accordion": "^1.1.1",
"clsx": "^1.2.1",
"dotenv": "^16.0.3",
"langchain": "^0.0.51",
"langchain": "0.0.55",
"lucide-react": "^0.125.0",
"next": "13.2.3",
"pdf-parse": "1.1.1",
Expand Down
4 changes: 2 additions & 2 deletions pages/api/chat.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { NextApiRequest, NextApiResponse } from 'next';
import { OpenAIEmbeddings } from 'langchain/embeddings';
import { PineconeStore } from 'langchain/vectorstores';
import { OpenAIEmbeddings } from 'langchain/embeddings/openai';
import { PineconeStore } from 'langchain/vectorstores/pinecone';
import { makeChain } from '@/utils/makechain';
import { pinecone } from '@/utils/pinecone-client';
import { PINECONE_INDEX_NAME, PINECONE_NAME_SPACE } from '@/config/pinecone';
Expand Down
2 changes: 2 additions & 0 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ export default function Home() {
if (message.type === 'apiMessage') {
icon = (
<Image
key={index}
src="/bot-image.png"
alt="AI"
width="40"
Expand All @@ -148,6 +149,7 @@ export default function Home() {
} else {
icon = (
<Image
key={index}
src="/usericon.png"
alt="Me"
width="30"
Expand Down
Loading

0 comments on commit 191e87c

Please sign in to comment.