About AI Lab Assistant

Welcome to the AI Lab Assistant application! This project is designed to demonstrate how MongoDB's advanced features, including MongoDB Atlas and VectorSearch, can be leveraged to build a robust question and answer system.

Purpose

The AI Lab Assistant aims to provide users with a platform for managing and answering questions efficiently. It is built to showcase the capabilities of MongoDB in handling real-world applications, particularly focusing on schema design best practices and aggregation pipeline optimizations.

Our Labs

Components

How It Works

AI Lab Assistant Flow Diagram

Figure 1: Data flow in the AI Lab Assistant application

The flow diagram above illustrates the process of how the AI Lab Assistant handles user questions:

  1. A user submits a question through the web interface.
  2. The question is sent to the server and an embedding is generated.
  3. The server searches for similar questions using MongoDB Vector Search.
  4. If a similar question is found, the existing answer is returned to the user.
  5. If no similar question is found, the server queries an LLM to generate an answer.
  6. The new question and answer are stored in MongoDB for future use.
  7. Administrators can update and answer questions, which updates the MongoDB database and regenerates embeddings as needed.

Get Involved

We encourage you to fork the repository and review the code to gain a deeper understanding of how MongoDB VectorSearch can be implemented to build a similar system.

Check out the project on GitHub: AI Lab Assistant Chat.

By exploring the code and the design patterns used, you can learn how to create scalable and efficient applications using MongoDB. Happy coding!

Changelog

2024-08-17

  • add sample questions (33aaece)

2024-08-17

  • Add workflow diagram and fix duplicate functions (d169706)

2024-08-16

  • Design Review Markdown Report generation (e011543)

2024-08-15

  • design review updates (393bcd4)

2024-08-11

  • fix feedback on questions (71643f2)

2024-08-07

  • add workshop content, and content tags (7c5637c)

2024-08-07

  • Fix reliance on module and correct case insensitivty for exact matches (c4e8bd3)

2024-08-07

  • Fix module dropdown (56a6832)

2024-08-07

  • Fix 'book now' modal' (3074065)

2024-08-05

  • Fix redirection in index route (b4b5a81)

2024-08-04

  • fix requirements (265cfae)

2024-08-04

  • fix question editing (6e750bd)

2024-08-04

  • add source-info back (e462b6e)

2024-08-02

  • modularize code and move admin functions to separate javascript files (7101238)

2024-07-29

  • Fix display issues and add feedback form with memory (3ce1437)

2024-07-28

  • Add changelog updates (e75830a)

2024-07-26

  • fix mobile version not sending message (ab37067)

2024-07-26

  • fix various display issues (91456e6)

2024-07-25

  • Fix duplicate database calls (17a1510)

2024-07-25

  • Fix feedback styling (de276be)

2024-07-25

  • update requirements (f353078)

2024-07-25

  • Fix interface scrolling issues (1fe9ef4)

2024-07-24

  • Fix sample question button (12dece5)

2024-07-24

  • fix send button (04cdc0b)

2024-07-24

  • Fix table header (10d422c)

2024-07-24

  • Ditch leafy and update custom css (e889eed)

2024-07-24

  • Add autocomplete and move booking a design review banner to the top (0c6d6bc)

2024-07-24

  • Add Event Tracking and Feedback (f9683b3)

2024-07-22

  • Add Booking Design Review (cd6b10f)

2024-07-22

  • Documentation, new requirements for nltk for context (e1fa48b)

2024-07-22

  • Add background image (04d9c78)

2024-07-21

  • Add user growth chart (f3b579a)

2024-07-21

  • Add conversation history, context/memory and conversation view in admin (3d0fafc)

2024-07-21

  • add flow diagram to about page (c6122aa)

2024-07-21

  • Add flowchart (cea2050)

2024-07-21

  • Update CHANGELOG.md (6038a48)

2024-07-21

  • Add mongodb chart (43f1f17)

2024-07-20

  • Style edit and delete and answer buttons (ba1245d)

2024-07-20

  • collapse sidebar on mobile devices (3e1376e)

2024-07-20

  • Add pagination for questions table (685b4b8)

2024-07-20

  • Fix problem with question editing. (9ea3775)

2024-07-20

  • fix error html message (d605825)

2024-07-20

  • Add statistics (047d7c9)

2024-07-20

  • Update README (67f2475)

2024-07-20

  • Fix styling, chat layout and theme (bf6f49c)

2024-07-18

  • Add answer feedback and editing for admins (9a51ced)

2024-07-18

- - Add user profile image, and profile page - Add automated generation of answers in admin (71c9c14)

2024-07-17

  • Fix mobile responsiveness (0d042d7)

2024-07-17

  • Update changelog (58f9f7e)

2024-07-16

  • Fix README (4332857)

2024-07-16

  • automate answering questions from potential answers via LLM (e27228f)

2024-07-15

  • replace sample questions and update css (3f9d197)

2024-07-14

  • add automated questiona and answers via llm (820ff46)

2024-07-14

  • Add changelog, and favicon (2211450)

2024-07-14

  • Add ability to reference gpt-3.5-turbo for unanswered questions (4752565)

2024-07-14

  • Add structure to documents and reformat (a9950dd)

2024-07-12

  • Add fork link (10ec9eb)

2024-07-12

  • Update main index content (1e60dc0)

2024-07-12

  • Fix color inconsistency in nav (a0dd36c)

2024-07-12

  • Add logo, fix mobile responsive version (4b83fa0)

2024-07-11

  • Add about page (16882c5)

2024-07-11

  • Cleanup (f206d20)

2024-07-11

  • add feedback system (9b4a89f)

2024-07-11

  • Unify navbar and add links (e339813)

2024-07-11

  • Add markdown editor (7aeacb6)

2024-07-11

  • Fix unanswered vs. answered question updating. (0b4e5f3)

2024-07-11

  • fix unexpected token in admin.js (b591321)

2024-07-11

  • Fix editing of questions (da5a1b5)

2024-07-11

  • add answering of questions and display of existing questions. Also update editing (6e31cf5)

2024-07-11

  • Remove prior conversations (c13dbe4)

2024-07-10

  • change database and test (c173627)

2024-07-10

  • Fix markdown interpretation (cd16d0b)

2024-07-10

  • add README (95a9df9)

2024-07-10

  • Initial commit (01b931f)