Skip to main content

An integration package connecting Groq and LangChain

Project description

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

uv sync --group lint --group test

Build the package

uv 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 check_imports

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

langchain_groq-1.0.0a1.tar.gz (25.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

langchain_groq-1.0.0a1-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

Details for the file langchain_groq-1.0.0a1.tar.gz.

File metadata

  • Download URL: langchain_groq-1.0.0a1.tar.gz
  • Upload date:
  • Size: 25.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for langchain_groq-1.0.0a1.tar.gz
Algorithm Hash digest
SHA256 132b2b8ee645375bc0f61f0ef2d95831258ba8ca368d3d45cf784573221b9c07
MD5 75a9b1459561224eb674a84b952d9ab6
BLAKE2b-256 9f1a5aed1edbf3d3ac5ae491b3cfaffc087dad51ae41f2e21bc845bc8062bf37

See more details on using hashes here.

File details

Details for the file langchain_groq-1.0.0a1-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_groq-1.0.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 2067e25f2be394a5cde6270d047757c2feb622f9f419d704778c355ce8d9d084
MD5 f5e099ba86286d2071c62dd8578d4b7f
BLAKE2b-256 d77c3bbe58c4da4fd2e86ac35d7305027e1fe9cba49e0d7a9271ae90ea21b47a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page