MCPcopy
hub / github.com/guangzhengli/ChatFiles

github.com/guangzhengli/ChatFiles @v0.3.3 sqlite

repository ↗ · DeepWiki ↗ · release v0.3.3 ↗
167 symbols 390 edges 60 files 0 documented · 0%
README

My SkillsBuy Me A Coffee

ChatFiles

Deploy with Vercel

Deploy with Vercel

this repository use LangchainJS, based on Chatbot-ui

ChatFiles

Upload your file and have a conversation with it.

How to use it

Init Vector DB

Crate a vector db on Supabase

How to run locally without limited

  1. clone this repository.
  2. create a .env file on root path.
  3. set environment variables in .env file follow doc/env-vars.md.

open browser with http://localhost:3000

How to run locally

chatfiles-ui

npm install
npm run dev

How to deploy on vercel

  1. Click the Deploy Button.
  2. Set environment variables follow doc/env-vars.md.
  3. Pay attention to the NEXT_PUBLIC_CHAT_FILES_UPLOAD_PATH value must be /tmp.

Feature

  • [x] Chat with GPT-3.5
  • [x] Chat with file by langchainjs and supabase vector db.

Star History

Star History Chart

Sponsors

Buy Me A Coffee

More Sponsor methods:

https://guangzhengli.com/sponsors

Who is sponsoring this project?

johnliu33   noxonsu   magedhelmy1   Zhang Andy   Huayu-Qin  

Extension points exported contracts — how you extend this code

EmbeddingCreateRequest (Interface)
(no doc)
types/embedding.ts
Message (Interface)
(no doc)
types/index.ts
Props (Interface)
(no doc)
components/Mobile/Navbar.tsx
Props (Interface)
(no doc)
components/Markdown/CodeBlock.tsx
InputProps (Interface)
(no doc)
components/ui/input.tsx
Props (Interface)
(no doc)
components/Sidebar/Import.tsx
Props (Interface)
(no doc)
components/Chat/ChatLoader.tsx
languageMap (Interface)
(no doc)
utils/app/codeblock.ts

Core symbols most depended-on inside this repo

cn
called by 34
lib/utils.ts
getDocumentLoader
called by 8
utils/langchain/documentLoader.ts
saveConversation
called by 5
utils/app/conversation.ts
saveConversations
called by 5
utils/app/conversation.ts
handleIsUploadSuccess
called by 4
components/Chat/Chat.tsx
getCallbackManager
called by 4
utils/openai.ts
humanFileSize
called by 4
utils/app/files.ts
handleIsUploading
called by 3
components/Chat/Chat.tsx

Shape

Function 130
Interface 36
Enum 1

Languages

TypeScript100%

Modules by API surface

pages/index.tsx21 symbols
components/Chat/ChatMessage.tsx10 symbols
types/index.ts9 symbols
components/Sidebar/Sidebar.tsx8 symbols
components/Sidebar/Folder.tsx8 symbols
components/Chat/Upload.tsx8 symbols
components/Chat/ChatInput.tsx7 symbols
components/Sidebar/KeySettings.tsx6 symbols
components/Chat/Chat.tsx6 symbols
components/ui/sheet.tsx5 symbols
components/Sidebar/Conversation.tsx5 symbols
utils/vector.ts4 symbols

Dependencies from manifests, versioned

@dqbd/tiktoken1.0.2 · 1×
@radix-ui/react-alert-dialog1.0.4 · 1×
@radix-ui/react-dialog1.0.4 · 1×
@radix-ui/react-label2.0.2 · 1×
@radix-ui/react-slot1.0.2 · 1×
@supabase/supabase-js2.21.0 · 1×
@tabler/icons-react2.9.0 · 1×
@tailwindcss/typography0.5.9 · 1×
@types/adm-zip0.5.0 · 1×
@types/formidable2.0.5 · 1×

For agents

$ claude mcp add ChatFiles \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact