Code Monkey home page Code Monkey logo

Comments (2)

declark1 avatar declark1 commented on July 25, 2024

For code organization purposes, we likely want to implement this not as branching logic in the orchestrator itself but as a separate chunker that can get called via some name (still implemented within the orchestrator repo, but from a deployment/user configuration POV, this name can be still be specified in the config).

Hmm, I don't think this approach will fit with the current design. We delegate to the ChunkerClient, which wraps the underlying ChunkersServiceClients. As this "default" implementation would not be an actual grpc ChunkersServiceClient (which is a struct, not a trait that we can implement a DefaultChunkerServiceClient for), this wouldn't work.

I can propose some alternative ways to implement this, if interested.

from fms-guardrails-orchestrator.

gkumbhat avatar gkumbhat commented on July 25, 2024

@declark1 definitely let us know some alternatives. The idea here was to not have yet another branching logic, like if chunker not configured or if chunker is default and instead have a stock implementation of a chunker that instead of making an external calls, returns the response based on the input text directly but in the format that the "chunker" itself would do.

This could be added in the chunk function, or we could add the default chunking mechanism as a special case handling in the chunk client itself 🤔

from fms-guardrails-orchestrator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.