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

caikit get started #57

Open
manisnesan opened this issue Oct 11, 2023 · 3 comments
Open

caikit get started #57

manisnesan opened this issue Oct 11, 2023 · 3 comments

Comments

@manisnesan
Copy link
Owner

manisnesan commented Oct 11, 2023

https://github.com/caikit/caikit
https://github.com/caikit/caikit#getting-started
https://caikit.github.io/website/docs/tutorial_appdev.html

image

Steps

  • text sentiment module - Load, Infer, Train model instructions for Caikit
  • text sentiment data model - Input, Output of the task
  • config
  • server
  • client
@manisnesan
Copy link
Owner Author

@manisnesan
Copy link
Owner Author

Caikit Reranker
https://github.com/markstur/caikit-embeddings/blob/main/demo/client/reranker.py#L104

 request = self._rerank_request(queries=[query], documents=query_request_documents, top_n=len(query_documents))  

================ request: queries: "asia"
documents {
  documents {
    document {
      key: "text"
      value: "america"
    }
  }
  documents {
    document {
      key: "title"
      value: "doc_title"
    }
    document {
      key: "text"
      value: "x"
    }
    document {
      key: "document_id"
      value: "doc_id"
    }
  }
  documents {
    document {
      key: "text"
      value: "asia"
    }
  }
}
top_n: 3

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

1 participant