langchain/libs/partners/groq
Charlie Marsh fd94aa8366
partner[patch]: Upgrade to Ruff v0.4.2 (#21108)
## Summary

No new diagnostics (given that the set of enabled rules hasn't changed),
but gains access to our new parser (much faster) and reduced false
positives all around.
2024-04-30 15:06:42 -04:00
..
langchain_groq groq[patch]: groq proxy support (#20758) 2024-04-24 21:58:03 +00:00
scripts partner: Add groq partner integration and chat model (#17856) 2024-02-22 07:36:16 -08:00
tests standard tests: add xfails (#20659) 2024-04-23 17:14:16 -04:00
.gitignore partner: Add groq partner integration and chat model (#17856) 2024-02-22 07:36:16 -08:00
LICENSE partner: Add groq partner integration and chat model (#17856) 2024-02-22 07:36:16 -08:00
Makefile partner: Add groq partner integration and chat model (#17856) 2024-02-22 07:36:16 -08:00
poetry.lock groq: bump core (#20838) 2024-04-24 11:51:46 -04:00
pyproject.toml partner[patch]: Upgrade to Ruff v0.4.2 (#21108) 2024-04-30 15:06:42 -04:00
README.md partner: Add groq partner integration and chat model (#17856) 2024-02-22 07:36:16 -08:00

langchain-groq

Welcome to Groq! 🚀

At Groq, we've developed the world's first Language Processing Unit™, or LPU. The Groq LPU has a deterministic, single core streaming architecture that sets the standard for GenAI inference speed with predictable and repeatable performance for any given workload.

Beyond the architecture, our software is designed to empower developers like you with the tools you need to create innovative, powerful AI applications. With Groq as your engine, you can:

  • Achieve uncompromised low latency and performance for real-time AI and HPC inferences 🔥
  • Know the exact performance and compute time for any given workload 🔮
  • Take advantage of our cutting-edge technology to stay ahead of the competition 💪

Want more Groq? Check out our website for more resources and join our Discord community to connect with our developers!

Installation and Setup

Install the integration package:

pip install langchain-groq

Request an API key and set it as an environment variable

export GROQ_API_KEY=gsk_...

Chat Model

See a usage example.

Development

To develop the langchain-groq package, you'll need to follow these instructions:

Install dev dependencies

poetry install --with test,test_integration,lint,codespell

Build the package

poetry build

Run unit tests

Unit tests live in tests/unit_tests and SHOULD NOT require an internet connection or a valid API KEY. Run unit tests with

make tests

Run integration tests

Integration tests live in tests/integration_tests and require a connection to the Groq API and a valid API KEY.

make integration_tests

Lint & Format

Run additional tests and linters to ensure your code is up to standard.

make lint spell_check check_imports