Skip to main content

SIE integration for CrewAI

Project description

sie-crewai

SIE integration for CrewAI.

Installation

pip install sie-crewai

Usage

Embeddings (via OpenAI-compatible API)

SIE provides an OpenAI-compatible /v1/embeddings endpoint, so you can use it directly with CrewAI's OpenAI provider:

from crewai import Crew, Agent, Task

crew = Crew(
    agents=[...],
    tasks=[...],
    memory=True,
    embedder={
        "provider": "openai",
        "config": {
            "model": "BAAI/bge-m3",
            "api_base": "http://localhost:8080/v1",
            "api_key": "not-needed",  # SIE doesn't require API key
        }
    }
)

Reranker Tool

Use SIERerankerTool to rerank documents in agent workflows:

from sie_crewai import SIERerankerTool

reranker = SIERerankerTool(
    base_url="http://localhost:8080",
    model="jinaai/jina-reranker-v2-base-multilingual",
)

agent = Agent(
    role="Research Analyst",
    tools=[reranker],
    ...
)

Extractor Tool

Use SIEExtractorTool to extract entities from text:

from sie_crewai import SIEExtractorTool

extractor = SIEExtractorTool(
    base_url="http://localhost:8080",
    model="urchade/gliner_multi-v2.1",
    labels=["person", "organization", "location"],
)

agent = Agent(
    role="Information Extractor",
    tools=[extractor],
    ...
)

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

sie_crewai-0.1.8.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

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

sie_crewai-0.1.8-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file sie_crewai-0.1.8.tar.gz.

File metadata

  • Download URL: sie_crewai-0.1.8.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sie_crewai-0.1.8.tar.gz
Algorithm Hash digest
SHA256 e4c106da7e0711a734847914891cc4f18094d6334f59a0994f43fdb1427f8caa
MD5 0126e5bfdb9d119cbef75b1cd4d47f7b
BLAKE2b-256 d6e15bbc99fedc217a0960a17370940cce1237fc4a829a4c7b15e4e999f2f5af

See more details on using hashes here.

File details

Details for the file sie_crewai-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: sie_crewai-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sie_crewai-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 d47adc24183ac38ccbf687dde49faaba5f6b71d5ce2e5bdcee20b9ab2e5a4de1
MD5 a23689d99179a934467834931fe51659
BLAKE2b-256 21f73bf4fea47361732051886e27b66010c00ab4cdd03c5a7e8eed82c00122c9

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