4
submitted 2 months ago* (last edited 2 months ago) by muntedcrocodile@lemm.ee to c/artificial_intel@lemmy.ml

I have written myself a web fronetend using langchain that uses a json based agent to do advanced tool use (websearch, calculations, document summarisation/information extraction, etc) and chain of thought reasoning. At the moment im using openai gpt-4-turbo for the main agent and gpt-3.5-turbo for some of the summation tools but openai models are limited in capabilities (wont talk about certain topic to the point of disregarding required output json formatting). What service can use that will run a preferably foss model as powerfull as gpt-4 that is pay per use with a langchain integration?

here's the project https://github.com/muntedcrocodile/Sydney

EDIT: Added link to project

top 1 comments
sorted by: hot top controversial new old
[-] rufus@discuss.tchncs.de 3 points 2 months ago* (last edited 2 months ago)

I'm not sure where in the documentation they list available backends... But you can see it in the source here: https://github.com/langchain-ai/langchain/tree/master/libs/langchain/langchain/llms (for the Python version)

You could use something like a Huggingface endpoint, or OpenRouter if you want flexibility but something easy to use. There are services like RunPod or vast.ai which let you rent cloud GPUs by the minute and run whatever you like. These would be some of the popular services.

Edit: Here's the documentation page for the JS version: https://js.langchain.com/docs/integrations/llms/

this post was submitted on 08 May 2024
4 points (100.0% liked)

AI

3924 readers
18 users here now

Artificial intelligence (AI) is intelligence demonstrated by machines, unlike the natural intelligence displayed by humans and animals, which involves consciousness and emotionality. The distinction between the former and the latter categories is often revealed by the acronym chosen.

founded 3 years ago