├── .gitignore ├── LICENSE ├── README.md ├── assets └── preview.webp ├── backend ├── Pipfile ├── Pipfile.lock ├── app.py ├── core │ ├── __init__.py │ ├── classifier.py │ ├── database.py │ ├── parser.py │ └── qa.py ├── data │ ├── train.json │ └── userdict.txt └── requirements.txt ├── database ├── actor.csv ├── belongs_to.csv ├── genre.csv ├── movie.csv └── stars_in.csv └── frontend ├── .eslintignore ├── .eslintrc.json ├── .prettierignore ├── .prettierrc.json ├── index.html ├── package.json ├── pnpm-lock.yaml ├── postcss.config.cjs ├── public ├── banner.png ├── favicon.ico ├── favicon.svg └── robots.txt ├── src ├── app.css ├── app.tsx ├── components │ ├── chat │ │ ├── ask.tsx │ │ ├── chat.tsx │ │ ├── hint.tsx │ │ ├── index.ts │ │ ├── message.tsx │ │ ├── reducer.ts │ │ └── waiting.tsx │ ├── header.tsx │ └── icons │ │ ├── film.tsx │ │ ├── github.tsx │ │ └── message-square.tsx ├── main.tsx ├── types │ └── message.d.ts └── vite-env.d.ts ├── tailwind.config.cjs ├── tsconfig.json └── vite.config.ts /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrcaidev/kgqa/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrcaidev/kgqa/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrcaidev/kgqa/HEAD/README.md -------------------------------------------------------------------------------- /assets/preview.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrcaidev/kgqa/HEAD/assets/preview.webp -------------------------------------------------------------------------------- /backend/Pipfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrcaidev/kgqa/HEAD/backend/Pipfile -------------------------------------------------------------------------------- /backend/Pipfile.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrcaidev/kgqa/HEAD/backend/Pipfile.lock -------------------------------------------------------------------------------- /backend/app.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrcaidev/kgqa/HEAD/backend/app.py -------------------------------------------------------------------------------- /backend/core/__init__.py: -------------------------------------------------------------------------------- 1 | from .qa import QA 2 | 3 | __all__ = ["QA"] 4 | -------------------------------------------------------------------------------- /backend/core/classifier.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrcaidev/kgqa/HEAD/backend/core/classifier.py -------------------------------------------------------------------------------- /backend/core/database.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrcaidev/kgqa/HEAD/backend/core/database.py -------------------------------------------------------------------------------- /backend/core/parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrcaidev/kgqa/HEAD/backend/core/parser.py -------------------------------------------------------------------------------- /backend/core/qa.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrcaidev/kgqa/HEAD/backend/core/qa.py -------------------------------------------------------------------------------- /backend/data/train.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrcaidev/kgqa/HEAD/backend/data/train.json -------------------------------------------------------------------------------- /backend/data/userdict.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrcaidev/kgqa/HEAD/backend/data/userdict.txt -------------------------------------------------------------------------------- /backend/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrcaidev/kgqa/HEAD/backend/requirements.txt -------------------------------------------------------------------------------- /database/actor.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrcaidev/kgqa/HEAD/database/actor.csv -------------------------------------------------------------------------------- /database/belongs_to.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrcaidev/kgqa/HEAD/database/belongs_to.csv -------------------------------------------------------------------------------- /database/genre.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrcaidev/kgqa/HEAD/database/genre.csv -------------------------------------------------------------------------------- /database/movie.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrcaidev/kgqa/HEAD/database/movie.csv -------------------------------------------------------------------------------- /database/stars_in.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrcaidev/kgqa/HEAD/database/stars_in.csv -------------------------------------------------------------------------------- /frontend/.eslintignore: -------------------------------------------------------------------------------- 1 | dist 2 | *.config.cjs 3 | -------------------------------------------------------------------------------- /frontend/.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrcaidev/kgqa/HEAD/frontend/.eslintrc.json -------------------------------------------------------------------------------- /frontend/.prettierignore: -------------------------------------------------------------------------------- 1 | dist 2 | pnpm-lock.yaml 3 | -------------------------------------------------------------------------------- /frontend/.prettierrc.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /frontend/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrcaidev/kgqa/HEAD/frontend/index.html -------------------------------------------------------------------------------- /frontend/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrcaidev/kgqa/HEAD/frontend/package.json -------------------------------------------------------------------------------- /frontend/pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrcaidev/kgqa/HEAD/frontend/pnpm-lock.yaml -------------------------------------------------------------------------------- /frontend/postcss.config.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrcaidev/kgqa/HEAD/frontend/postcss.config.cjs -------------------------------------------------------------------------------- /frontend/public/banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrcaidev/kgqa/HEAD/frontend/public/banner.png -------------------------------------------------------------------------------- /frontend/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrcaidev/kgqa/HEAD/frontend/public/favicon.ico -------------------------------------------------------------------------------- /frontend/public/favicon.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrcaidev/kgqa/HEAD/frontend/public/favicon.svg -------------------------------------------------------------------------------- /frontend/public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Allow: / 3 | -------------------------------------------------------------------------------- /frontend/src/app.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrcaidev/kgqa/HEAD/frontend/src/app.css -------------------------------------------------------------------------------- /frontend/src/app.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrcaidev/kgqa/HEAD/frontend/src/app.tsx -------------------------------------------------------------------------------- /frontend/src/components/chat/ask.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrcaidev/kgqa/HEAD/frontend/src/components/chat/ask.tsx -------------------------------------------------------------------------------- /frontend/src/components/chat/chat.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrcaidev/kgqa/HEAD/frontend/src/components/chat/chat.tsx -------------------------------------------------------------------------------- /frontend/src/components/chat/hint.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrcaidev/kgqa/HEAD/frontend/src/components/chat/hint.tsx -------------------------------------------------------------------------------- /frontend/src/components/chat/index.ts: -------------------------------------------------------------------------------- 1 | export { Chat } from "./chat"; 2 | -------------------------------------------------------------------------------- /frontend/src/components/chat/message.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrcaidev/kgqa/HEAD/frontend/src/components/chat/message.tsx -------------------------------------------------------------------------------- /frontend/src/components/chat/reducer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrcaidev/kgqa/HEAD/frontend/src/components/chat/reducer.ts -------------------------------------------------------------------------------- /frontend/src/components/chat/waiting.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrcaidev/kgqa/HEAD/frontend/src/components/chat/waiting.tsx -------------------------------------------------------------------------------- /frontend/src/components/header.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrcaidev/kgqa/HEAD/frontend/src/components/header.tsx -------------------------------------------------------------------------------- /frontend/src/components/icons/film.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrcaidev/kgqa/HEAD/frontend/src/components/icons/film.tsx -------------------------------------------------------------------------------- /frontend/src/components/icons/github.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrcaidev/kgqa/HEAD/frontend/src/components/icons/github.tsx -------------------------------------------------------------------------------- /frontend/src/components/icons/message-square.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrcaidev/kgqa/HEAD/frontend/src/components/icons/message-square.tsx -------------------------------------------------------------------------------- /frontend/src/main.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrcaidev/kgqa/HEAD/frontend/src/main.tsx -------------------------------------------------------------------------------- /frontend/src/types/message.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrcaidev/kgqa/HEAD/frontend/src/types/message.d.ts -------------------------------------------------------------------------------- /frontend/src/vite-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /frontend/tailwind.config.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrcaidev/kgqa/HEAD/frontend/tailwind.config.cjs -------------------------------------------------------------------------------- /frontend/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrcaidev/kgqa/HEAD/frontend/tsconfig.json -------------------------------------------------------------------------------- /frontend/vite.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrcaidev/kgqa/HEAD/frontend/vite.config.ts --------------------------------------------------------------------------------