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

Agnostic local inference #799

Open
wants to merge 49 commits into
base: dev
Choose a base branch
from
Open

Agnostic local inference #799

wants to merge 49 commits into from

Conversation

joein
Copy link
Member

@joein joein commented Oct 3, 2024

WIP:

  • extend test set
  • refactor inspectors
  • - fix type hints
  • - add docstrings
  • - fix interface for inspection of several models

Copy link

netlify bot commented Oct 3, 2024

Deploy Preview for poetic-froyo-8baba7 ready!

Name Link
🔨 Latest commit 15981e7
🔍 Latest deploy log https://app.netlify.com/sites/poetic-froyo-8baba7/deploys/67120d40e26885000837c467
😎 Deploy Preview https://deploy-preview-799--poetic-froyo-8baba7.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@joein joein mentioned this pull request Oct 3, 2024
@joein joein force-pushed the agnostic-local-inference branch 2 times, most recently from 4f7b120 to 30e4da4 Compare October 15, 2024 09:53
model_name = query.model
if model_name is None:
raise ValueError(
"`query_points` requires explicit model name specification for `Document`"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't know if this method will only be called from query_points


def _embed_document(
self, document: models.Document, is_query: bool = False
) -> Union[List[float], models.SparseVector]:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Late interaction can also return List[List[float]] I propose to define a type alias for this, otherwise too verbose

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

Successfully merging this pull request may close these issues.

2 participants