Skip to main content

Ionic Commerce tool for Haystack

Ionic Haystack provides an Agent Tool integration to Ionic Commerce. This tool will enable e-commerce for your agent , allowing your users to ask for product recommendations and purchase products through the agent chat interface.

Installation

You can install the package from PyPI using pip:

python3 -m pip install ionic-haystack

or poetry:

poetry add ionic-haystack

Usage

Get started quickly using Ionic Commerce with Haystack by creating an IonicShoppingTool and adding it to your agent's tools.

import os
from haystack.agents import Tool
from haystack.agents.conversational import ConversationalAgent
from haystack.agents.memory import ConversationMemory
from haystack.nodes import PromptNode

from ionic_haystack.prompt_templates import ionic_template
from ionic_haystack.tool import IonicShoppingTool

ionic_node = IonicShoppingTool(api_key="my_ionic_api_key")
ionic_tool = Tool(
    name="Ionic",
    pipeline_or_node=ionic_node,
    description=ionic_template
)

memory = ConversationMemory()
prompt_node = PromptNode("gpt-3.5-turbo", api_key=os.getenv("OPENAI_API_KEY") , max_length=256, stop_words=["Observation:"])
agent = ConversationalAgent(prompt_node, tools=[ionic_tool],  memory=memory, prompt_template="deepset/conversational-agent")

Examples

  • Example Ionic Agent: Open In Colab

Metadata

Release files for ionic-haystack 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ionic-haystack 0.1.6
File Size Uploaded Provenance Actions
ionic_haystack-0.1.6.tar.gz 3.7 kB Without provenance Details for ionic_haystack-0.1.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ionic-haystack 0.1.6
File Interpreter ABI Platform Actions
ionic_haystack-0.1.6-py3-none-any.whl Python 3 none any Details for ionic_haystack-0.1.6-py3-none-any.whl

Total release size: 8.9 kB

Release files / ionic_haystack-0.1.6.tar.gz

Download URL ionic_haystack-0.1.6.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
634536a929d855a0c6dbab67c2e822e0323610025c06d4bb8ca1a65b5389e452
BLAKE2b-256 checksum
How to use checksums
e26a342dc50cddc64de9c9ce1cb53bc5f7ff945d03f9cfdb24e1c6261c385e55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.11.7 Linux/6.2.0-1019-azure

Release files / ionic_haystack-0.1.6-py3-none-any.whl

Download URL ionic_haystack-0.1.6-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7089c04ad0edd27f542c8e18cece39c6ac7d49ab09f4d6105c24f62925eb3958
BLAKE2b-256 checksum
How to use checksums
167601038b27e49852c1b8c91e3e889f372dd3bd6d90ff304ec9535817f07e10
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.11.7 Linux/6.2.0-1019-azure

Security for ionic-haystack 0.1.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page