Skip to main content

mixedbread.ai (https://www.mixedbread.ai)

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

mixedbread ai Python SDK

Introduction to mixedbread ai

mixedbread ai is a cutting-edge research and development company specializing in Natural Language Processing (NLP). At our core, we focus on advancing the field of NLP through innovative research, offering powerful tools for embeddings, retrieval, and other NLP functionalities. Our mission is to make NLP accessible to everyone on every device. To learn more about mixedbread ai, visit our website.

Requirements.

Python 3.7+

Installation & Usage

Installation

If the python package is hosted on a repository, you can install directly using:

pip install mixedbread_ai

Usage

from mixedbread_ai import MixedbreadAi
import os
os.environ["MIXEDBREAD_API_KEY"] = "{YOUR_API_KEY}"

mxbai = MixedbreadAi()
embeddings = mxbai.embeddings(
    model="e5-large-v2",
    input=["I like to eat apples.", "I like to eat bananas."]
)

print(embeddings)

Alternatively, you can set the api key via configuration:

from mixedbread_ai import MixedbreadAi

mxbai = MixedbreadAi(
    api_key="{YOUR_API_KEY}",
    base_url="https://api.mixedbread.ai",
    timeout=30,
    headers={"X-Custom-Header": "foobar"},
    ...
)
embeddings = mxbai.embeddings(
    model="e5-large-v2",
    input=["I like to eat apples.", "I like to eat bananas."],
    normalized=False
)

print(embeddings)

Don't forget to replace "{YOUR_API_KEY}" with your actual API key. If you don't have an API key, you can get one for free by signing up for an account at mixedbread.ai.

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

mixedbread_ai-1.2.2.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

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

mixedbread_ai-1.2.2-py3-none-any.whl (18.8 kB view details)

Uploaded Python 3

File details

Details for the file mixedbread_ai-1.2.2.tar.gz.

File metadata

  • Download URL: mixedbread_ai-1.2.2.tar.gz
  • Upload date:
  • Size: 12.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.0 Linux/6.2.0-1018-azure

File hashes

Hashes for mixedbread_ai-1.2.2.tar.gz
Algorithm Hash digest
SHA256 d27bdcd0e35ce51f8e1098b88c9e9a43c26574109f1186670121d9e13e0ca6c5
MD5 dbfe3fd881b1d8dbc97a20a782f7ded6
BLAKE2b-256 75f623a45652ad29f38f926ba0dfa69f8a290978c784854db760b564beec562e

See more details on using hashes here.

File details

Details for the file mixedbread_ai-1.2.2-py3-none-any.whl.

File metadata

  • Download URL: mixedbread_ai-1.2.2-py3-none-any.whl
  • Upload date:
  • Size: 18.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.0 Linux/6.2.0-1018-azure

File hashes

Hashes for mixedbread_ai-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0bb34dc0ad575d22efda9aa27f21ca52da77b840a47e8160371374943ce9a469
MD5 7ff1ea3ce33e61f1d76c3e74a34552eb
BLAKE2b-256 7bbae73497450a9f375b39ddb963a9d6912860f24ca70dae4192ac89da9b9fab

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