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

Issue with Chunk Scores Returning None #36

Closed
NoahAi25 opened this issue Nov 25, 2024 · 1 comment
Closed

Issue with Chunk Scores Returning None #36

NoahAi25 opened this issue Nov 25, 2024 · 1 comment
Assignees

Comments

@NoahAi25
Copy link

Hello,

I’m encountering an issue with the scores of retrieved chunks. Each score is returning as None. Could this be a problem with my code, or is it a potential bug?

Thank you for your help!

milvus_document_store = MilvusDocumentStore(
    connection_args={
        "uri": X
    },
    collection_name=X,
    primary_field="X"
)

def get_pipeline(top_k=10):
    pipeline = Pipeline()
    pipeline.add_component("embedder", AzureOpenAITextEmbedder())
    pipeline.add_component("retriever", MilvusEmbeddingRetriever(document_store=milvus_document_store, top_k=top_k)
    pipeline.connect("embedder", "retriever")
    return pipeline

pipeline = get_pipeline(top_k=10)
r = pipeline.run({"text": "X"})
for doc in r['retriever']['documents']:
    print(doc.score)

> None
...

@zc277584121 zc277584121 self-assigned this Dec 11, 2024
@zc277584121
Copy link
Collaborator

@NoahAi25 thank you for your report. have fixed at #37

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

2 participants