Skip to content
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

Suppport the Chunking DSL #1432

Open
orpiske opened this issue Oct 1, 2024 · 0 comments
Open

Suppport the Chunking DSL #1432

orpiske opened this issue Oct 1, 2024 · 0 comments

Comments

@orpiske
Copy link

orpiske commented Oct 1, 2024

Describe the solution you'd like

Camel 4.8 introduced a new EIP (aka Chunking DSL) aimed at integration developers working on integrations for AI applications. The first implementation of this new DSL is based the LangChain4j tokenizer.

Looking at Camel Karavan I noticed it is not yet supported. This could be partially caused by CAMEL-21269 which had a few missing models. With Camel 4.9.0 and 4.8.1, the missing models will be present and tools should be able to generate YAML routes such as:

- route:
    id: route-1737
    from:
      id: from-2457
      uri: timer:template
      parameters:
        period: "1000"
      steps:
        - tokenizer:
            id: tokenizer-3980
            langChain4jCharacterTokenizer:
              maxOverlap: 10
              maxTokens: 1024
              tokenizerType: OPEN_AI

The following tokenizers are currently present:

  • langChain4jCharacterTokenizer
  • langChain4jParagraphTokenizer
  • langChain4jWordTokenizer
  • langChain4jLineTokenizer
  • langChain4jSentenceTokenizer

Variant

Web Application

Container Management (if applicable)

None

Operating System (for VS Code Extension)

None

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

No branches or pull requests

1 participant