Skip to content

Conversation

TheSonOfThomp
Copy link
Collaborator

Updates the chat bot server to use our azure instance

@TheSonOfThomp TheSonOfThomp requested a review from a team as a code owner May 8, 2025 19:35
@TheSonOfThomp TheSonOfThomp requested review from tsck and removed request for a team May 8, 2025 19:35
Copy link

changeset-bot bot commented May 8, 2025

⚠️ No Changeset found

Latest commit: 49380e4

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Base automatically changed from a/ingest-web-loader to integration/chat May 9, 2025 14:46
tsck and others added 24 commits May 9, 2025 10:50
* feat(ui): initialize chatbot UI with React and Vite

- Added package.json for UI package with scripts and dependencies.
- Created App.css for styling the main application layout.
- Implemented App.tsx as the main component integrating the MongoDB Chatbot UI.
- Added a React SVG asset for branding.
- Created index.css for global styles and theming.
- Set up main.tsx as the entry point for the React application.
- Added vite-env.d.ts for Vite type definitions.
- Configured TypeScript with tsconfig.json and tsconfig.node.json for the UI package.
- Created vite.config.ts for Vite configuration with React plugin.

* fix: update license to Apache-2.0 and refactor import statements for consistency
- Added package.json for UI package with scripts and dependencies.
- Created App.css for styling the main application layout.
- Implemented App.tsx as the main component integrating the MongoDB Chatbot UI.
- Added a React SVG asset for branding.
- Created index.css for global styles and theming.
- Set up main.tsx as the entry point for the React application.
- Added vite-env.d.ts for Vite type definitions.
- Configured TypeScript with tsconfig.json and tsconfig.node.json for the UI package.
- Created vite.config.ts for Vite configuration with React plugin.
…Framework, and refactor Azure OpenAI embedder
commit 3eec08f
Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com>
Date:   Fri May 9 10:46:31 2025 -0400

    Ingest with recursive crawler (#2849)

    * feat(ui): initialize chatbot UI with React and Vite (#2841)

    * feat(ui): initialize chatbot UI with React and Vite

    - Added package.json for UI package with scripts and dependencies.
    - Created App.css for styling the main application layout.
    - Implemented App.tsx as the main component integrating the MongoDB Chatbot UI.
    - Added a React SVG asset for branding.
    - Created index.css for global styles and theming.
    - Set up main.tsx as the entry point for the React application.
    - Added vite-env.d.ts for Vite type definitions.
    - Configured TypeScript with tsconfig.json and tsconfig.node.json for the UI package.
    - Created vite.config.ts for Vite configuration with React plugin.

    * fix: update license to Apache-2.0 and refactor import statements for consistency

    * feat(ui): initialize chatbot UI with React and Vite

    - Added package.json for UI package with scripts and dependencies.
    - Created App.css for styling the main application layout.
    - Implemented App.tsx as the main component integrating the MongoDB Chatbot UI.
    - Added a React SVG asset for branding.
    - Created index.css for global styles and theming.
    - Set up main.tsx as the entry point for the React application.
    - Added vite-env.d.ts for Vite type definitions.
    - Configured TypeScript with tsconfig.json and tsconfig.node.json for the UI package.
    - Created vite.config.ts for Vite configuration with React plugin.

    * fix: update license to Apache-2.0 and refactor import statements for consistency

    * feat(ingest): add initial configuration and data sources for chatbot ingestion

    * update configs

    * feat(ingest): implement data sources for LeafyGreen UI and MongoDB Chatbot Framework

    * chore: update pnpm workspace configuration to include 'apps/*' directory

    * feat(ingest): add data sources for LeafyGreen UI and MongoDB Chatbot Framework, and refactor Azure OpenAI embedder

    * feat(ingest): add MongoDB Design website data source and integrate into ingest configuration

    * Delete package-lock.json

    * reset ui

    * feat(crawler): export LoadedPageContents and ProcessSingleUrl interfaces

    * feat(crawler): refactor crawling logic to use processLangchainDocument and update allowedDomains format

    * feat(crawler): update recursive crawl logic to process documents with processLangchainDocument

    * feat(crawler): update package.json exports and refactor lodash imports

    * feat(crawler): implement createWebSourceConstructor and update ingest configuration

    * Update ingest.config.ts

    * feat(crawler): replace createWebSourceConstructor with webSourceConstructor and update data sources

    * fix(crawler): handle invalid URLs in newURL and recursive crawl logic

    * Resolve tsconfig.json

    ---------

    Co-authored-by: Terrence Keane <terrence.keane@mongodb.com>
commit 3eec08f
Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com>
Date:   Fri May 9 10:46:31 2025 -0400

    Ingest with recursive crawler (#2849)

    * feat(ui): initialize chatbot UI with React and Vite (#2841)

    * feat(ui): initialize chatbot UI with React and Vite

    - Added package.json for UI package with scripts and dependencies.
    - Created App.css for styling the main application layout.
    - Implemented App.tsx as the main component integrating the MongoDB Chatbot UI.
    - Added a React SVG asset for branding.
    - Created index.css for global styles and theming.
    - Set up main.tsx as the entry point for the React application.
    - Added vite-env.d.ts for Vite type definitions.
    - Configured TypeScript with tsconfig.json and tsconfig.node.json for the UI package.
    - Created vite.config.ts for Vite configuration with React plugin.

    * fix: update license to Apache-2.0 and refactor import statements for consistency

    * feat(ui): initialize chatbot UI with React and Vite

    - Added package.json for UI package with scripts and dependencies.
    - Created App.css for styling the main application layout.
    - Implemented App.tsx as the main component integrating the MongoDB Chatbot UI.
    - Added a React SVG asset for branding.
    - Created index.css for global styles and theming.
    - Set up main.tsx as the entry point for the React application.
    - Added vite-env.d.ts for Vite type definitions.
    - Configured TypeScript with tsconfig.json and tsconfig.node.json for the UI package.
    - Created vite.config.ts for Vite configuration with React plugin.

    * fix: update license to Apache-2.0 and refactor import statements for consistency

    * feat(ingest): add initial configuration and data sources for chatbot ingestion

    * update configs

    * feat(ingest): implement data sources for LeafyGreen UI and MongoDB Chatbot Framework

    * chore: update pnpm workspace configuration to include 'apps/*' directory

    * feat(ingest): add data sources for LeafyGreen UI and MongoDB Chatbot Framework, and refactor Azure OpenAI embedder

    * feat(ingest): add MongoDB Design website data source and integrate into ingest configuration

    * Delete package-lock.json

    * reset ui

    * feat(crawler): export LoadedPageContents and ProcessSingleUrl interfaces

    * feat(crawler): refactor crawling logic to use processLangchainDocument and update allowedDomains format

    * feat(crawler): update recursive crawl logic to process documents with processLangchainDocument

    * feat(crawler): update package.json exports and refactor lodash imports

    * feat(crawler): implement createWebSourceConstructor and update ingest configuration

    * Update ingest.config.ts

    * feat(crawler): replace createWebSourceConstructor with webSourceConstructor and update data sources

    * fix(crawler): handle invalid URLs in newURL and recursive crawl logic

    * Resolve tsconfig.json

    ---------

    Co-authored-by: Terrence Keane <terrence.keane@mongodb.com>
@TheSonOfThomp TheSonOfThomp force-pushed the a/chat-server-update branch from 90666b0 to 49380e4 Compare May 9, 2025 14:50
@TheSonOfThomp TheSonOfThomp merged commit 384de1f into integration/chat May 9, 2025
1 of 5 checks passed
@TheSonOfThomp TheSonOfThomp deleted the a/chat-server-update branch May 9, 2025 14:51
TheSonOfThomp added a commit that referenced this pull request May 21, 2025
* feat(ui): initialize chatbot UI with React and Vite (#2841)

* feat(ui): initialize chatbot UI with React and Vite

- Added package.json for UI package with scripts and dependencies.
- Created App.css for styling the main application layout.
- Implemented App.tsx as the main component integrating the MongoDB Chatbot UI.
- Added a React SVG asset for branding.
- Created index.css for global styles and theming.
- Set up main.tsx as the entry point for the React application.
- Added vite-env.d.ts for Vite type definitions.
- Configured TypeScript with tsconfig.json and tsconfig.node.json for the UI package.
- Created vite.config.ts for Vite configuration with React plugin.

* fix: update license to Apache-2.0 and refactor import statements for consistency

* feat(ui): initialize chatbot UI with React and Vite

- Added package.json for UI package with scripts and dependencies.
- Created App.css for styling the main application layout.
- Implemented App.tsx as the main component integrating the MongoDB Chatbot UI.
- Added a React SVG asset for branding.
- Created index.css for global styles and theming.
- Set up main.tsx as the entry point for the React application.
- Added vite-env.d.ts for Vite type definitions.
- Configured TypeScript with tsconfig.json and tsconfig.node.json for the UI package.
- Created vite.config.ts for Vite configuration with React plugin.

* fix: update license to Apache-2.0 and refactor import statements for consistency

* feat(ingest): add initial configuration and data sources for chatbot ingestion

* update configs

* feat(ingest): implement data sources for LeafyGreen UI and MongoDB Chatbot Framework

* chore: update pnpm workspace configuration to include 'apps/*' directory

* feat(ingest): add data sources for LeafyGreen UI and MongoDB Chatbot Framework, and refactor Azure OpenAI embedder

* feat(ingest): add MongoDB Design website data source and integrate into ingest configuration

* Delete package-lock.json

* reset ui

* feat(crawler): implement createWebSourceConstructor and update ingest configuration

* Update ingest.config.ts

* feat(crawler): replace createWebSourceConstructor with webSourceConstructor and update data sources

* fix(crawler): handle invalid URLs in newURL and recursive crawl logic

* mv ui & server

* Refactor code structure for improved readability and maintainability

* feat(ingest): add UMD configuration and update TypeScript settings

* Updates package config

* feat(chatbot): integrate Azure OpenAI services and update environment variable loading

* feat(chatbot): refactor chatbot initialization and update server configuration

* fix: update ingest script path and improve TypeScript configuration

* feat(ingest): refactor Azure OpenAI embedder integration and remove unused constructor

* fix: update mongodb-chatbot-server and mongodb-rag-core dependencies to latest versions

* Squashed commit of the following:

commit 3eec08f
Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com>
Date:   Fri May 9 10:46:31 2025 -0400

    Ingest with recursive crawler (#2849)

    * feat(ui): initialize chatbot UI with React and Vite (#2841)

    * feat(ui): initialize chatbot UI with React and Vite

    - Added package.json for UI package with scripts and dependencies.
    - Created App.css for styling the main application layout.
    - Implemented App.tsx as the main component integrating the MongoDB Chatbot UI.
    - Added a React SVG asset for branding.
    - Created index.css for global styles and theming.
    - Set up main.tsx as the entry point for the React application.
    - Added vite-env.d.ts for Vite type definitions.
    - Configured TypeScript with tsconfig.json and tsconfig.node.json for the UI package.
    - Created vite.config.ts for Vite configuration with React plugin.

    * fix: update license to Apache-2.0 and refactor import statements for consistency

    * feat(ui): initialize chatbot UI with React and Vite

    - Added package.json for UI package with scripts and dependencies.
    - Created App.css for styling the main application layout.
    - Implemented App.tsx as the main component integrating the MongoDB Chatbot UI.
    - Added a React SVG asset for branding.
    - Created index.css for global styles and theming.
    - Set up main.tsx as the entry point for the React application.
    - Added vite-env.d.ts for Vite type definitions.
    - Configured TypeScript with tsconfig.json and tsconfig.node.json for the UI package.
    - Created vite.config.ts for Vite configuration with React plugin.

    * fix: update license to Apache-2.0 and refactor import statements for consistency

    * feat(ingest): add initial configuration and data sources for chatbot ingestion

    * update configs

    * feat(ingest): implement data sources for LeafyGreen UI and MongoDB Chatbot Framework

    * chore: update pnpm workspace configuration to include 'apps/*' directory

    * feat(ingest): add data sources for LeafyGreen UI and MongoDB Chatbot Framework, and refactor Azure OpenAI embedder

    * feat(ingest): add MongoDB Design website data source and integrate into ingest configuration

    * Delete package-lock.json

    * reset ui

    * feat(crawler): export LoadedPageContents and ProcessSingleUrl interfaces

    * feat(crawler): refactor crawling logic to use processLangchainDocument and update allowedDomains format

    * feat(crawler): update recursive crawl logic to process documents with processLangchainDocument

    * feat(crawler): update package.json exports and refactor lodash imports

    * feat(crawler): implement createWebSourceConstructor and update ingest configuration

    * Update ingest.config.ts

    * feat(crawler): replace createWebSourceConstructor with webSourceConstructor and update data sources

    * fix(crawler): handle invalid URLs in newURL and recursive crawl logic

    * Resolve tsconfig.json

    ---------

    Co-authored-by: Terrence Keane <terrence.keane@mongodb.com>

* Delete webSourceConstructor.ts

* Squashed commit of the following:

commit 3eec08f
Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com>
Date:   Fri May 9 10:46:31 2025 -0400

    Ingest with recursive crawler (#2849)

    * feat(ui): initialize chatbot UI with React and Vite (#2841)

    * feat(ui): initialize chatbot UI with React and Vite

    - Added package.json for UI package with scripts and dependencies.
    - Created App.css for styling the main application layout.
    - Implemented App.tsx as the main component integrating the MongoDB Chatbot UI.
    - Added a React SVG asset for branding.
    - Created index.css for global styles and theming.
    - Set up main.tsx as the entry point for the React application.
    - Added vite-env.d.ts for Vite type definitions.
    - Configured TypeScript with tsconfig.json and tsconfig.node.json for the UI package.
    - Created vite.config.ts for Vite configuration with React plugin.

    * fix: update license to Apache-2.0 and refactor import statements for consistency

    * feat(ui): initialize chatbot UI with React and Vite

    - Added package.json for UI package with scripts and dependencies.
    - Created App.css for styling the main application layout.
    - Implemented App.tsx as the main component integrating the MongoDB Chatbot UI.
    - Added a React SVG asset for branding.
    - Created index.css for global styles and theming.
    - Set up main.tsx as the entry point for the React application.
    - Added vite-env.d.ts for Vite type definitions.
    - Configured TypeScript with tsconfig.json and tsconfig.node.json for the UI package.
    - Created vite.config.ts for Vite configuration with React plugin.

    * fix: update license to Apache-2.0 and refactor import statements for consistency

    * feat(ingest): add initial configuration and data sources for chatbot ingestion

    * update configs

    * feat(ingest): implement data sources for LeafyGreen UI and MongoDB Chatbot Framework

    * chore: update pnpm workspace configuration to include 'apps/*' directory

    * feat(ingest): add data sources for LeafyGreen UI and MongoDB Chatbot Framework, and refactor Azure OpenAI embedder

    * feat(ingest): add MongoDB Design website data source and integrate into ingest configuration

    * Delete package-lock.json

    * reset ui

    * feat(crawler): export LoadedPageContents and ProcessSingleUrl interfaces

    * feat(crawler): refactor crawling logic to use processLangchainDocument and update allowedDomains format

    * feat(crawler): update recursive crawl logic to process documents with processLangchainDocument

    * feat(crawler): update package.json exports and refactor lodash imports

    * feat(crawler): implement createWebSourceConstructor and update ingest configuration

    * Update ingest.config.ts

    * feat(crawler): replace createWebSourceConstructor with webSourceConstructor and update data sources

    * fix(crawler): handle invalid URLs in newURL and recursive crawl logic

    * Resolve tsconfig.json

    ---------

    Co-authored-by: Terrence Keane <terrence.keane@mongodb.com>

---------

Co-authored-by: Terrence Keane <terrence.keane@mongodb.com>
TheSonOfThomp added a commit that referenced this pull request May 21, 2025
* feat(ui): initialize chatbot UI with React and Vite (#2841)

* feat(ui): initialize chatbot UI with React and Vite

- Added package.json for UI package with scripts and dependencies.
- Created App.css for styling the main application layout.
- Implemented App.tsx as the main component integrating the MongoDB Chatbot UI.
- Added a React SVG asset for branding.
- Created index.css for global styles and theming.
- Set up main.tsx as the entry point for the React application.
- Added vite-env.d.ts for Vite type definitions.
- Configured TypeScript with tsconfig.json and tsconfig.node.json for the UI package.
- Created vite.config.ts for Vite configuration with React plugin.

* fix: update license to Apache-2.0 and refactor import statements for consistency

* feat(ui): initialize chatbot UI with React and Vite

- Added package.json for UI package with scripts and dependencies.
- Created App.css for styling the main application layout.
- Implemented App.tsx as the main component integrating the MongoDB Chatbot UI.
- Added a React SVG asset for branding.
- Created index.css for global styles and theming.
- Set up main.tsx as the entry point for the React application.
- Added vite-env.d.ts for Vite type definitions.
- Configured TypeScript with tsconfig.json and tsconfig.node.json for the UI package.
- Created vite.config.ts for Vite configuration with React plugin.

* fix: update license to Apache-2.0 and refactor import statements for consistency

* feat(ingest): add initial configuration and data sources for chatbot ingestion

* update configs

* feat(ingest): implement data sources for LeafyGreen UI and MongoDB Chatbot Framework

* chore: update pnpm workspace configuration to include 'apps/*' directory

* feat(ingest): add data sources for LeafyGreen UI and MongoDB Chatbot Framework, and refactor Azure OpenAI embedder

* feat(ingest): add MongoDB Design website data source and integrate into ingest configuration

* Delete package-lock.json

* reset ui

* feat(crawler): implement createWebSourceConstructor and update ingest configuration

* Update ingest.config.ts

* feat(crawler): replace createWebSourceConstructor with webSourceConstructor and update data sources

* fix(crawler): handle invalid URLs in newURL and recursive crawl logic

* mv ui & server

* Refactor code structure for improved readability and maintainability

* feat(ingest): add UMD configuration and update TypeScript settings

* Updates package config

* feat(chatbot): integrate Azure OpenAI services and update environment variable loading

* feat(chatbot): refactor chatbot initialization and update server configuration

* fix: update ingest script path and improve TypeScript configuration

* feat(ingest): refactor Azure OpenAI embedder integration and remove unused constructor

* fix: update mongodb-chatbot-server and mongodb-rag-core dependencies to latest versions

* Squashed commit of the following:

commit 3eec08f
Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com>
Date:   Fri May 9 10:46:31 2025 -0400

    Ingest with recursive crawler (#2849)

    * feat(ui): initialize chatbot UI with React and Vite (#2841)

    * feat(ui): initialize chatbot UI with React and Vite

    - Added package.json for UI package with scripts and dependencies.
    - Created App.css for styling the main application layout.
    - Implemented App.tsx as the main component integrating the MongoDB Chatbot UI.
    - Added a React SVG asset for branding.
    - Created index.css for global styles and theming.
    - Set up main.tsx as the entry point for the React application.
    - Added vite-env.d.ts for Vite type definitions.
    - Configured TypeScript with tsconfig.json and tsconfig.node.json for the UI package.
    - Created vite.config.ts for Vite configuration with React plugin.

    * fix: update license to Apache-2.0 and refactor import statements for consistency

    * feat(ui): initialize chatbot UI with React and Vite

    - Added package.json for UI package with scripts and dependencies.
    - Created App.css for styling the main application layout.
    - Implemented App.tsx as the main component integrating the MongoDB Chatbot UI.
    - Added a React SVG asset for branding.
    - Created index.css for global styles and theming.
    - Set up main.tsx as the entry point for the React application.
    - Added vite-env.d.ts for Vite type definitions.
    - Configured TypeScript with tsconfig.json and tsconfig.node.json for the UI package.
    - Created vite.config.ts for Vite configuration with React plugin.

    * fix: update license to Apache-2.0 and refactor import statements for consistency

    * feat(ingest): add initial configuration and data sources for chatbot ingestion

    * update configs

    * feat(ingest): implement data sources for LeafyGreen UI and MongoDB Chatbot Framework

    * chore: update pnpm workspace configuration to include 'apps/*' directory

    * feat(ingest): add data sources for LeafyGreen UI and MongoDB Chatbot Framework, and refactor Azure OpenAI embedder

    * feat(ingest): add MongoDB Design website data source and integrate into ingest configuration

    * Delete package-lock.json

    * reset ui

    * feat(crawler): export LoadedPageContents and ProcessSingleUrl interfaces

    * feat(crawler): refactor crawling logic to use processLangchainDocument and update allowedDomains format

    * feat(crawler): update recursive crawl logic to process documents with processLangchainDocument

    * feat(crawler): update package.json exports and refactor lodash imports

    * feat(crawler): implement createWebSourceConstructor and update ingest configuration

    * Update ingest.config.ts

    * feat(crawler): replace createWebSourceConstructor with webSourceConstructor and update data sources

    * fix(crawler): handle invalid URLs in newURL and recursive crawl logic

    * Resolve tsconfig.json

    ---------

    Co-authored-by: Terrence Keane <terrence.keane@mongodb.com>

* Delete webSourceConstructor.ts

* Squashed commit of the following:

commit 3eec08f
Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com>
Date:   Fri May 9 10:46:31 2025 -0400

    Ingest with recursive crawler (#2849)

    * feat(ui): initialize chatbot UI with React and Vite (#2841)

    * feat(ui): initialize chatbot UI with React and Vite

    - Added package.json for UI package with scripts and dependencies.
    - Created App.css for styling the main application layout.
    - Implemented App.tsx as the main component integrating the MongoDB Chatbot UI.
    - Added a React SVG asset for branding.
    - Created index.css for global styles and theming.
    - Set up main.tsx as the entry point for the React application.
    - Added vite-env.d.ts for Vite type definitions.
    - Configured TypeScript with tsconfig.json and tsconfig.node.json for the UI package.
    - Created vite.config.ts for Vite configuration with React plugin.

    * fix: update license to Apache-2.0 and refactor import statements for consistency

    * feat(ui): initialize chatbot UI with React and Vite

    - Added package.json for UI package with scripts and dependencies.
    - Created App.css for styling the main application layout.
    - Implemented App.tsx as the main component integrating the MongoDB Chatbot UI.
    - Added a React SVG asset for branding.
    - Created index.css for global styles and theming.
    - Set up main.tsx as the entry point for the React application.
    - Added vite-env.d.ts for Vite type definitions.
    - Configured TypeScript with tsconfig.json and tsconfig.node.json for the UI package.
    - Created vite.config.ts for Vite configuration with React plugin.

    * fix: update license to Apache-2.0 and refactor import statements for consistency

    * feat(ingest): add initial configuration and data sources for chatbot ingestion

    * update configs

    * feat(ingest): implement data sources for LeafyGreen UI and MongoDB Chatbot Framework

    * chore: update pnpm workspace configuration to include 'apps/*' directory

    * feat(ingest): add data sources for LeafyGreen UI and MongoDB Chatbot Framework, and refactor Azure OpenAI embedder

    * feat(ingest): add MongoDB Design website data source and integrate into ingest configuration

    * Delete package-lock.json

    * reset ui

    * feat(crawler): export LoadedPageContents and ProcessSingleUrl interfaces

    * feat(crawler): refactor crawling logic to use processLangchainDocument and update allowedDomains format

    * feat(crawler): update recursive crawl logic to process documents with processLangchainDocument

    * feat(crawler): update package.json exports and refactor lodash imports

    * feat(crawler): implement createWebSourceConstructor and update ingest configuration

    * Update ingest.config.ts

    * feat(crawler): replace createWebSourceConstructor with webSourceConstructor and update data sources

    * fix(crawler): handle invalid URLs in newURL and recursive crawl logic

    * Resolve tsconfig.json

    ---------

    Co-authored-by: Terrence Keane <terrence.keane@mongodb.com>

---------

Co-authored-by: Terrence Keane <terrence.keane@mongodb.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants