Skip to content

[Bug]: Document API & Knowledge base document embedding issue #150

@nmilardo21

Description

@nmilardo21

Bug description

2 Issues when we try to upload the Document for knowledge base.

  1. The API key (hardcoded) it takes for submitting document for embedding is being retrieved from the config.yaml and document.yaml

knowledge_extractor_config: options: model_name: "text-embedding-3-large" api_key: "xxxxxxxx"

  1. After changing keys, it progressed further, and got error
    ERROR /app/app/core/embedding/plain_embedding.py 52 embed_documents app.core.embedding.plain_embedding Error in embedding documents: module 'app.bridges.artifacts.protos.integration_api_pb2_grpc' has no attribute 'CohereServiceStub'

Expected behavior

  1. The key should be taken from the UI during creation of Knowledge Base.
  2. The uploaded document should have been successfully embedded without giving any error.

Steps to reproduce

  1. mac os -> docker
  2. make up with knowledge base
  3. create knowledge base, provide the API key (this key is not being considered during embedding).
  4. upload documents.

Rapida version

v2.3.0

Logs or traces (optional)

ERROR /app/app/core/embedding/plain_embedding.py 52 embed_documents app.core.embedding.plain_embedding Error in embedding documents: module 'app.bridges.artifacts.protos.integration_api_pb2_grpc' has no attribute 'CohereServiceStub'

Deployment type

Docker

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions