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

Add topic classifier #437

Merged
merged 4 commits into from
Aug 14, 2024
Merged

Add topic classifier #437

merged 4 commits into from
Aug 14, 2024

Conversation

caufieldjh
Copy link
Member

Given an input text (or a directory of them) and a topic, this queries an LLM as to whether the text matches the topic.

Example:

$ ontogpt classify-by-topic -i temp/30091466.txt -m lbl/llama-3 --model-provider openai --api-base "https://api.cborg.lbl.gov" "clinical observations of human patients, including the diagnostic and therapeutic procedures used during their clinical care."
temp/30091466.txt       False

@caufieldjh caufieldjh marked this pull request as ready for review August 14, 2024 02:37
@caufieldjh caufieldjh merged commit 2339950 into main Aug 14, 2024
2 checks passed
@caufieldjh caufieldjh deleted the topic_classifier branch August 14, 2024 13:58
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.

1 participant