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

DatabricksRM KeyError 'score' #1886

Open
kvnlng opened this issue Dec 4, 2024 · 1 comment
Open

DatabricksRM KeyError 'score' #1886

kvnlng opened this issue Dec 4, 2024 · 1 comment
Assignees

Comments

@kvnlng
Copy link

kvnlng commented Dec 4, 2024

Sending a list of vectors to DatabricksRM instance returns:

KeyError: 'score'
File , line 1
----> 1 retriever(qv)

239 # Sorting results by score in descending order

--> 240 sorted_docs = sorted(items, key=lambda x: x["score"], reverse=True)[: self.k]
242 # Returning the prediction
243 return Prediction(
244 docs=[doc[self.text_column_name] for doc in sorted_docs],
245 doc_ids=[self._extract_doc_ids(doc) for doc in sorted_docs],
246 extra_columns=[self._get_extra_columns(item) for item in sorted_docs],
247 )

Note:
This is a STORAGE_OPTIMIZED index being tested under private beta.

Happy to provide more details

@chenmoneygithub
Copy link
Collaborator

@dbczumar Any clues?

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

3 participants