Skip to content

feat: Enhance n8dex with multi-LLM, local search, and UI improvements #51

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

HooJohn
Copy link

@HooJohn HooJohn commented Jun 6, 2025

This commit introduces several key enhancements to the n8dex project:

  1. Multi-LLM Compatibility:

    • The backend now supports configurable LLM providers (Gemini, OpenRouter, DeepSeek) via environment variables (LLM_PROVIDER, LLM_API_KEY, etc.).
    • The frontend includes a dropdown to select the desired LLM provider.
  2. Local Network Search:

    • Added functionality to search local network HTML content.
    • Configuration via environment variables (ENABLE_LOCAL_SEARCH, LOCAL_SEARCH_DOMAINS, SEARCH_MODE).
    • The frontend provides a "Search Scope" dropdown to control search behavior (Internet only, Local only, combined modes).
  3. LangSmith Monitoring Toggle:

    • Backend respects LANGSMITH_ENABLED environment variable for global control.
    • Frontend UI includes a toggle for your preference regarding LangSmith tracing, passed to the backend.
  4. Frontend UI Enhancements:

    • Updated the overall theme to a brighter, more enterprise-friendly light theme.
    • Added UI elements for selecting LLM provider, LangSmith preference, and search scope.
    • Improved styling of chat messages and input forms.
  5. Backend Refinements & Testing:

    • Refactored backend configuration and graph logic to support new features.
    • Added a suite of unit tests for backend components (configuration, graph logic, local search tool) to ensure stability.
  6. Documentation:

    • Updated README.md extensively to cover all new features, environment variables, and UI options.

Note: Integration of specific "Finance" and "HR" frontend sections is deferred pending example code.

This commit introduces several key enhancements to the n8dex project:

1.  **Multi-LLM Compatibility:**
    *   The backend now supports configurable LLM providers (Gemini, OpenRouter, DeepSeek) via environment variables (`LLM_PROVIDER`, `LLM_API_KEY`, etc.).
    *   The frontend includes a dropdown to select the desired LLM provider.

2.  **Local Network Search:**
    *   Added functionality to search local network HTML content.
    *   Configuration via environment variables (`ENABLE_LOCAL_SEARCH`, `LOCAL_SEARCH_DOMAINS`, `SEARCH_MODE`).
    *   The frontend provides a "Search Scope" dropdown to control search behavior (Internet only, Local only, combined modes).

3.  **LangSmith Monitoring Toggle:**
    *   Backend respects `LANGSMITH_ENABLED` environment variable for global control.
    *   Frontend UI includes a toggle for your preference regarding LangSmith tracing, passed to the backend.

4.  **Frontend UI Enhancements:**
    *   Updated the overall theme to a brighter, more enterprise-friendly light theme.
    *   Added UI elements for selecting LLM provider, LangSmith preference, and search scope.
    *   Improved styling of chat messages and input forms.

5.  **Backend Refinements & Testing:**
    *   Refactored backend configuration and graph logic to support new features.
    *   Added a suite of unit tests for backend components (configuration, graph logic, local search tool) to ensure stability.

6.  **Documentation:**
    *   Updated `README.md` extensively to cover all new features, environment variables, and UI options.

Note: Integration of specific "Finance" and "HR" frontend sections is deferred pending example code.
Copy link

google-cla bot commented Jun 6, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Adds the source files for `frontend/src/components/ui/switch.tsx` and
`frontend/src/components/ui/label.tsx`. These components were being
imported by `InputForm.tsx` but their source files were missing from
the repository, causing TypeScript compilation errors during the
Docker build process (TS2307: Cannot find module).

This commit provides the standard ShadCN UI implementations for these
components, which should resolve the build failure.
Adds `@radix-ui/react-label` and `@radix-ui/react-switch` to
the `dependencies` in `frontend/package.json`.

These packages are required by the `label.tsx` and `switch.tsx`
ShadCN UI components but were not previously listed as dependencies,
leading to TypeScript errors (TS2307: Cannot find module) during
the frontend build process within Docker.

This change ensures that these dependencies are installed,
allowing the project to build successfully.
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