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

DuckDBAdapter: Batch OpenAI calls #62

Merged
merged 3 commits into from
Aug 21, 2024
Merged

Conversation

iQuxLE
Copy link
Member

@iQuxLE iQuxLE commented Aug 20, 2024

DuckDBAdapter

Reduces the amount of API calls when using an openai model. Speeds up inserting!
Changed default embedding model to: text_embedding-ada-002

  • tokenizer to estimate tokens before api call
  • uses langchain

@cmungall
Copy link
Member

langchain is quite a heavyweight requirement - did you mean to update the poetry files too?

Is there a way to do it without langchain - e.g. using llm?

@iQuxLE
Copy link
Member Author

iQuxLE commented Aug 20, 2024

Ok, I can do it differently

@iQuxLE iQuxLE requested a review from cmungall August 20, 2024 22:25
@cmungall cmungall merged commit aa69288 into monarch-initiative:main Aug 21, 2024
0 of 3 checks passed
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