|
| 1 | +document-qa-system/ |
| 2 | +├── .env.example # Example environment file |
| 3 | +├── .gitignore # Git ignore rules |
| 4 | +├── README.md # Project documentation |
| 5 | +├── package.json # Node.js dependencies |
| 6 | +├── tsconfig.json # TypeScript configuration |
| 7 | +├── docker-compose.yml # Docker setup for Qdrant |
| 8 | +├── LICENSE # MIT License |
| 9 | +├── CONTRIBUTING.md # Contribution guidelines |
| 10 | +├── .github/ |
| 11 | +│ └── workflows/ |
| 12 | +│ └── ci.yml # GitHub Actions CI/CD |
| 13 | +├── src/ |
| 14 | +│ ├── config/ |
| 15 | +│ │ ├── database.ts # Qdrant database configuration |
| 16 | +│ │ ├── ai.ts # AI model configuration |
| 17 | +│ │ └── google-drive.ts # Google Drive API setup |
| 18 | +│ ├── services/ |
| 19 | +│ │ ├── document-service.ts # Document handling service |
| 20 | +│ │ ├── embedding-service.ts # Text embedding service |
| 21 | +│ │ ├── vector-service.ts # Vector database operations |
| 22 | +│ │ └── ai-service.ts # AI question answering |
| 23 | +│ ├── mcp/ |
| 24 | +│ │ ├── server.ts # MCP server implementation |
| 25 | +│ │ └── tools/ |
| 26 | +│ │ ├── document-tools.ts # Document management tools |
| 27 | +│ │ └── search-tools.ts # Search functionality tools |
| 28 | +│ ├── api/ |
| 29 | +│ │ ├── app.ts # Express server setup |
| 30 | +│ │ └── routes/ |
| 31 | +│ │ ├── chat.ts # Chat and document routes |
| 32 | +│ │ └── health.ts # Health check endpoint |
| 33 | +│ ├── utils/ |
| 34 | +│ │ ├── text-splitter.ts # Text chunking utility |
| 35 | +│ │ ├── logger.ts # Logging utility |
| 36 | +│ │ └── validation.ts # Input validation |
| 37 | +│ └── types/ |
| 38 | +│ └── index.ts # TypeScript type definitions |
| 39 | +├── public/ |
| 40 | +│ ├── index.html # Main web interface |
| 41 | +│ ├── style.css # Styling |
| 42 | +│ ├── script.js # Frontend JavaScript |
| 43 | +│ └── favicon.ico # Website icon |
| 44 | +├── docs/ |
| 45 | +│ ├── API.md # API documentation |
| 46 | +│ ├── DEPLOYMENT.md # Deployment guide |
| 47 | +│ └── ARCHITECTURE.md # System architecture |
| 48 | +├── scripts/ |
| 49 | +│ ├── setup.js # Initial setup script |
| 50 | +│ ├── seed-data.js # Sample data seeder |
| 51 | +│ └── health-check.js # System health checker |
| 52 | +└── tests/ |
| 53 | + ├── unit/ |
| 54 | + │ ├── services/ |
| 55 | + │ │ ├── ai-service.test.js |
| 56 | + │ │ └── vector-service.test.js |
| 57 | + │ └── utils/ |
| 58 | + │ └── text-splitter.test.js |
| 59 | + └── integration/ |
| 60 | + └── api.test.js |
0 commit comments