-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: create getFileUploadStatus endpoint * feat: refactor chat wrapper component and add chat input and messages components * feat: add chevron icons * feat: add button back to dashboard * feat: add component textarea from shadcn-ui * feat: add chat input and send button * feat: update .env.example with empty values for KINDE_ISSUER_URL, PINECONE_API_KEY, OPENAI_API_KEY * chore: add pinecone and langchain dependencies * feat: add Message model and its relations * feat: add route for sending messages and chat context for handling messages * feat: add file upload functionality and process the uploaded file * chore: add pdf-parser * chore: add openAI and ai from vercel * feat: add OpenAI and Pinecone clients
- Loading branch information
1 parent
2d18668
commit df047a2
Showing
9 changed files
with
455 additions
and
26 deletions.
There are no files selected for viewing
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import OpenAI from 'openai'; | ||
|
||
export const openai = new OpenAI({ | ||
apiKey: process.env.OPENAI_API_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
import { Pinecone } from '@pinecone-database/pinecone'; | ||
|
||
export const pinecone = new Pinecone({ | ||
apiKey: process.env.PINECONE_API_KEY!, | ||
environment: 'gcp-starter', | ||
}); | ||
export const getPineconeClient = async () => { | ||
const client = new Pinecone({ | ||
environment: 'gcp-starter', | ||
apiKey: process.env.PINECONE_API_KEY!, | ||
}); | ||
return client; | ||
}; |
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
Oops, something went wrong.