-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fb21e7a
commit d3b98af
Showing
34 changed files
with
8,659 additions
and
6,560 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# ------------------LangSmith tracing------------------ | ||
LANGCHAIN_TRACING_V2=true | ||
LANGCHAIN_ENDPOINT="https://api.smith.langchain.com" | ||
LANGCHAIN_API_KEY= | ||
LANGCHAIN_PROJECT= | ||
# ----------------------------------------------------- | ||
|
||
WEAVIATE_API_KEY= | ||
WEAVIATE_URL= | ||
WEAVIATE_INDEX_NAME= | ||
|
||
FIREWORKS_API_KEY= | ||
|
||
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,22 +1,3 @@ | ||
{ | ||
"parser": "@typescript-eslint/parser", | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:react/recommended", | ||
"plugin:react-hooks/recommended", | ||
"plugin:@typescript-eslint/recommended" | ||
], | ||
"env": { | ||
"node": true | ||
}, | ||
"rules": { | ||
"@typescript-eslint/no-var-requires": 0, | ||
"react/jsx-uses-react": "off", | ||
"react/react-in-jsx-scope": "off" | ||
}, | ||
"settings": { | ||
"react": { | ||
"version": "18" | ||
} | ||
} | ||
"extends": "next/core-web-vitals" | ||
} |
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,37 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
|
||
# testing | ||
/coverage | ||
|
||
# next.js | ||
/.next/ | ||
/out/ | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
*.pem | ||
|
||
# debug | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# local env files | ||
.env*.local | ||
|
||
# vercel | ||
.vercel | ||
|
||
# typescript | ||
*.tsbuildinfo | ||
next-env.d.ts | ||
|
||
.yarn/ |
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,3 @@ | ||
{ | ||
"endOfLine": "lf" | ||
} |
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 @@ | ||
nodeLinker: node-modules |
Empty file.
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
2 changes: 1 addition & 1 deletion
2
frontend/src/components/Playground.tsx → frontend/app/components/Playground.tsx
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
File renamed without changes.
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,3 @@ | ||
import { Playground } from '../components/Playground'; | ||
|
||
export default Playground; |
File renamed without changes.
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,50 @@ | ||
import "./globals.css"; | ||
import { ReactNode } from "react"; | ||
import type { Metadata } from "next"; | ||
import { Inter } from "next/font/google"; | ||
import { Sidebar } from './components/Sidebar' | ||
|
||
const inter = Inter({ subsets: ["latin"] }); | ||
|
||
export const metadata: Metadata = { | ||
title: "Chat LangChain", | ||
description: "Chatbot for LangChain", | ||
}; | ||
|
||
export default function RootLayout({ | ||
children, | ||
}: { | ||
children: ReactNode; | ||
}) { | ||
return ( | ||
<html lang="en" className="h-full"> | ||
<head> | ||
<link | ||
rel="icon" | ||
href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🦜</text></svg>" | ||
/> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>LangChain Extract</title> | ||
</head> | ||
<body className={`${inter.className} h-full`}> | ||
<div className="flex flex-col w-100% h-full"> | ||
<div className="flex justify-between bg-slate-200 mb-4 p-3 items-center gap-2"> | ||
<div className="font-semibold">🦜⛏️ LangChain Extract</div> | ||
<div className="text-s text-rose-800"> | ||
<strong>Research Preview</strong>: this app is unauthenticated and | ||
all data can be found. Do not use with sensitive data. | ||
</div> | ||
</div> | ||
<div className="flex gap-3 ml-5 mr-5"> | ||
<div className="w-1/6"> | ||
<Sidebar /> | ||
</div> | ||
<div className="m-auto w-5/6"> | ||
{children} | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
</html> | ||
); | ||
} |
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,3 @@ | ||
import CreateExtractor from '../components/CreateExtractor' | ||
|
||
export default CreateExtractor; |
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,15 @@ | ||
"use client"; | ||
|
||
import { ToastContainer } from "react-toastify"; | ||
import CreateExtractor from './components/CreateExtractor' | ||
|
||
import { ChakraProvider } from "@chakra-ui/react"; | ||
|
||
export default function Home() { | ||
return ( | ||
<ChakraProvider> | ||
<ToastContainer /> | ||
<CreateExtractor /> | ||
</ChakraProvider> | ||
); | ||
} |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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,4 @@ | ||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = {}; | ||
|
||
module.exports = nextConfig; |
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,62 +1,63 @@ | ||
{ | ||
"name": "langchain-extract", | ||
"name": "langchain-extract-frontend", | ||
"version": "0.1.0", | ||
"private": true, | ||
"version": "0.0.0", | ||
"type": "module", | ||
"license": "MIT", | ||
"packageManager": "yarn@1.22.19", | ||
"scripts": { | ||
"fix": "prettier --write . && eslint --fix --ext=js,jsx,ts,tsx .", | ||
"dev": "vite", | ||
"build": "tsc && vite build", | ||
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0 && prettier --check" | ||
"dev": "next dev", | ||
"build": "next build", | ||
"start": "next start", | ||
"lint": "next lint", | ||
"format": "prettier --write .", | ||
"format:check": "prettier --config .prettierrc --check \"app\"" | ||
}, | ||
"dependencies": { | ||
"@chakra-ui/card": "^2.2.0", | ||
"@chakra-ui/icons": "^2.1.1", | ||
"@chakra-ui/react": "^2.8", | ||
"@chakra-ui/icons": "^2.1.0", | ||
"@chakra-ui/react": "^2.8.1", | ||
"@codemirror/lang-json": "^6.0.1", | ||
"@emotion/react": "^11", | ||
"@emotion/styled": "^11", | ||
"@emotion/react": "^11.11.1", | ||
"@emotion/styled": "^11.11.0", | ||
"@heroicons/react": "^2.1.1", | ||
"@mui/material": "^5.15.10", | ||
"@langchain/community": "^0.0.27", | ||
"@langchain/core": "^0.1.26", | ||
"@langchain/openai": "^0.0.14", | ||
"@langchain/weaviate": "^0.0.1", | ||
"@rjsf/chakra-ui": "^5.17.1", | ||
"@rjsf/core": "^5.17.1", | ||
"@rjsf/utils": "^5.17.1", | ||
"@rjsf/validator-ajv8": "^5.17.1", | ||
"@tailwindcss/forms": "^0.5.7", | ||
"@tailwindcss/typography": "^0.5.10", | ||
"@tanstack/react-query": "^5.22.2", | ||
"@types/dompurify": "^3.0.5", | ||
"@types/marked": "^5.0.1", | ||
"@types/node": "20.4.9", | ||
"@types/react": "18.2.20", | ||
"@types/react-dom": "18.2.7", | ||
"@uiw/react-codemirror": "^4.21.24", | ||
"axios": "^1.6.7", | ||
"chakra-react-select": "^4.7.6", | ||
"eslint-plugin-react": "^7.34.1", | ||
"framer-motion": "^5", | ||
"orval": "^6.25.0", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"react-router-dom": "^6.22.3", | ||
"autoprefixer": "10.4.14", | ||
"axios": "^1.6.8", | ||
"dompurify": "^3.0.8", | ||
"emojisplosion": "^2.6.1", | ||
"eslint": "8.46.0", | ||
"eslint-config-next": "13.4.13", | ||
"framer-motion": "^10.16.4", | ||
"graphql": "^16.8.1", | ||
"highlight.js": "^11.8.0", | ||
"langchain": "^0.1.4", | ||
"langsmith": "^0.0.41", | ||
"marked": "^7.0.2", | ||
"next": "13.5.4", | ||
"postcss": "8.4.31", | ||
"react": "18.2.0", | ||
"react-dom": "18.2.0", | ||
"react-syntax-highlighter": "^15.5.0", | ||
"swr": "^2.2.5", | ||
"vite-plugin-eslint": "^1.8.1", | ||
"yarn": "^1.22.21" | ||
"react-textarea-autosize": "^8.5.3", | ||
"react-toastify": "^9.1.3", | ||
"tailwindcss": "3.3.3", | ||
"typescript": "5.1.6", | ||
"weaviate-ts-client": "^2.0.0" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "^18.2.56", | ||
"@types/react-dom": "^18.2.19", | ||
"@typescript-eslint/eslint-plugin": "^7.0.2", | ||
"@typescript-eslint/parser": "^7.0.2", | ||
"@vitejs/plugin-react": "^4.2.1", | ||
"autoprefixer": "^10.4.17", | ||
"daisyui": "^4.7.2", | ||
"eslint": "^8.57.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-react-hooks": "^4.6.0", | ||
"eslint-plugin-react-refresh": "^0.4.5", | ||
"postcss": "^8.4.35", | ||
"prettier": "3.2.5", | ||
"tailwindcss": "^3.4.1", | ||
"typescript": "^5.4.2", | ||
"typescript-eslint": "^7.2.0", | ||
"vite": "^5.1.4" | ||
"@types/react-syntax-highlighter": "^15.5.11", | ||
"prettier": "^3.0.3", | ||
"typescript": "5.1.6" | ||
} | ||
} |
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,6 @@ | ||
export default { | ||
module.exports = { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
} | ||
}; |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.