qdrant / qdrant/qdrant

Issue when inserting in to vector db

Open
#3,389 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
34.7k
Forks
2.7k
Avg merge
1d 18h
Merged PRs (30d)
187

Description

When inserting PDF in to qdrant vector db using the llama index framework am getting the below error

**_InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
status = StatusCode.INVALID_ARGUMENT
details = "cannot convert to json number"
debug_error_string = "UNKNOWN:Error received from peer , grpc_status:3, grpc_message:"cannot convert to json number"}"

**

code used

from llama_index import (
    VectorStoreIndex,
    SimpleDirectoryReader,
    StorageContext,ServiceContext
)
vector_store = QdrantVectorStore(client=client, collection_name=COLLECTION)
storage_context = StorageContext.from_defaults(vector_store=vector_store)
# to change the default values
service_context = ServiceContext.from_defaults(embed_model=embed_model,\
                                               llm=llm,\
                                               chunk_size = 256,
                                               chunk_overlap = 50)

documents = SimpleDirectoryReader(
                                DIRECTORY_PATH, 
                                file_extractor={".pdf": UnstructuredReader()},
                                recursive=True, 
                                file_metadata=file_metadata,
                                filename_as_id=True,
                                required_exts=FILE_EXTENSION).load_data()

index = VectorStoreIndex.from_documents(
    documents=documents,
    storage_context=storage_context, 
    service_context=service_context,
    store_nodes_override=True

```)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the provided Python insertion using LlamaIndex, QdrantVectorStore, a PDF, and the shown configuration. Check the Qdrant and client versions plus the inserted document metadata and payload values to isolate what produces the JSON-number conversion error. Done means identifying a reproducible cause and documenting or validating a focused fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.