Skip to main content

youcom-haystack

PyPI - Version PyPI - Python Version


Usage

YouComWebSearch runs without any configuration: with no API key available it uses the You.com keyless free tier (rate limited per IP). Set the YOUDOTCOM_API_KEY environment variable to use the keyed You.com Search API with higher limits.

from haystack_integrations.components.websearch.youcom import YouComWebSearch

websearch = YouComWebSearch(top_k=5)
result = websearch.run(query="What is Haystack by deepset?")
result["documents"]  # list[Document]
result["links"]  # list[str]

To require a key instead of silently degrading to the keyless tier, pass keyless_fallback=False; the component then raises YouComError when no key resolves.

Contributing

Refer to the general Contribution Guidelines.

The unit tests are fully mocked and need no credentials. The integration tests include one live keyless search that needs no key; to also run the keyed tests, export the YOUDOTCOM_API_KEY environment variable.

Download files

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

Source Distribution

youcom_haystack-0.0.1.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

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

youcom_haystack-0.0.1-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file youcom_haystack-0.0.1.tar.gz.

File metadata

  • Download URL: youcom_haystack-0.0.1.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for youcom_haystack-0.0.1.tar.gz
Algorithm Hash digest
SHA256 ea9fdb2808ed195504bbde6a3e64097129731a02186197eba3882c11b46bc514
MD5 f2966b0357d58d4900557d2e0bd065a4
BLAKE2b-256 c7eb9af1ee733b934fb1c4462cc64d9906d3f3ccb180688e8ff0f99512124c9b

See more details on using hashes here.

Provenance

The following attestation bundles were made for youcom_haystack-0.0.1.tar.gz:

Publisher: CI_pypi_release.yml on deepset-ai/haystack-core-integrations

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file youcom_haystack-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: youcom_haystack-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for youcom_haystack-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6519133ba17daf8de701f5150314c5d4f681b7f9f99c087ca2a38be64fc10b94
MD5 407711922628580e57c6db64fdd1172d
BLAKE2b-256 8c22c3631d254d13e7208e5f559869be1d39a4940d21cc78398b556404aa952f

See more details on using hashes here.

Provenance

The following attestation bundles were made for youcom_haystack-0.0.1-py3-none-any.whl:

Publisher: CI_pypi_release.yml on deepset-ai/haystack-core-integrations

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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