https://github.com/tony-xlh/Chat-with-Scanned-Documents
A demo chatting with documents scanned with Dynamic Web TWAIN
https://github.com/tony-xlh/Chat-with-Scanned-Documents
Last synced: 6 days ago
JSON representation
A demo chatting with documents scanned with Dynamic Web TWAIN
- Host: GitHub
- URL: https://github.com/tony-xlh/Chat-with-Scanned-Documents
- Owner: tony-xlh
- License: mit
- Created: 2023-05-17T06:18:10.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-25T01:41:00.000Z (almost 2 years ago)
- Last Synced: 2025-04-02T19:51:33.241Z (13 days ago)
- Language: JavaScript
- Homepage:
- Size: 243 KB
- Stars: 6
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-langchain-zh - Chat with Scanned Documents - xlh/Chat-with-Scanned-Documents?style=social): 与使用 Dynamic Web TWAIN 扫描的文档进行对话的演示。 (开源项目 / 其他聊天机器人)
- awesome-langchain - Chat with Scanned Documents
README
# Chat-with-Scanned-Documents
A demo of using Tesseract.js to extract text of documents scanned with [Dynamic Web TWAIN](https://www.dynamsoft.com/web-twain/overview/) and use LangChain to chat with them.
If the SDK expires, you need to apply for your license [here](https://www.dynamsoft.com/customer/license/trialLicense?product=dwt).
[Online demo](https://singular-chimera-686bc8.netlify.app/)
### Installation
```sh
npm install
```### Start Dev Server
```sh
npm start
```### Build Prod Version
```sh
npm run build
```### Features:
- ES6 Support via [babel](https://babeljs.io/) (v7)
- JavaScript Linting via [eslint](https://eslint.org/)
- SASS Support via [sass-loader](https://github.com/jtangelder/sass-loader)
- Autoprefixing of browserspecific CSS rules via [postcss](https://postcss.org/) and [postcss-preset-env](https://github.com/csstools/postcss-preset-env)
- Style Linting via [stylelint](https://stylelint.io/)When you run `npm run build` we use the [mini-css-extract-plugin](https://github.com/webpack-contrib/mini-css-extract-plugin) to move the css to a separate file. The css file gets included in the head of the `index.html`.