Skip to content

error when running ingestion using Bedrock Titan embedding model #30

@onion1984

Description

@onion1984

Here is my config file:

ingest:

  • source: 'pdf'
    source_path: '/home/ubuntu/sample.pdf'
    chunk_size: 2000
    chunk_overlap: 200
    embedding:
    class_name: Bedrock
    model_name: amazon.titan-embed-text-v2:0
    vector_store:
    connectionString: 'mongodb://xxx:xxx@learning-shard-00-00.v0kta.mongodb.net:27017,learning-shard-00-01.v0kta.mongodb.net:27017,learning-shard-00-02.v0kta.mongodb.net:27017/?ssl=true&replicaSet=atlas-5pe3zr-shard-0&authSource=admin&retryWrites=true&w=majority&appName=learning'
    dbName: 'maap'
    collectionName: 'knowledge'
    embeddingKey: 'embedding'
    textKey: 'text'
    numCandidates: 150
    minScore: 0.1
    vectorSearchIndexName: 'vector_index'
    llms:
    class_name: Bedrock
    model_name: 'anthropic.claude-3-5-sonnet-20241022-v2:0'
    max_tokens: 10000
    temperature: 1

And I have configured the .env file to include my AWS credentials

I encountered the following error when trying to run the 'npm run ingest'
../../src/index.ts:48:34 - error TS2307: Cannot find module './models/llamaIndex/llama-azureopenai-model.js' or its corresponding type declarations.

48 import { LlamaAzureChatAI } from './models/llamaIndex/llama-azureopenai-model.js';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

../../src/index.ts:49:29 - error TS2307: Cannot find module './models/llamaIndex/llama-openai-model.js' or its corresponding type declarations.

49 import { LlamaOpenAi } from './models/llamaIndex/llama-openai-model.js';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

../../src/index.ts:50:30 - error TS2307: Cannot find module './models/llamaIndex/llama-bedrock-model.js' or its corresponding type declarations.

50 import { LlamaBedrock } from './models/llamaIndex/llama-bedrock-model.js';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Found 3 errors in the same file, starting at: ../../src/index.ts:48

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions