Skip to main content

Python package for semantic relevant web search results.

Project description

AgentWebSearch Package

Description

...

Quickstart

Create a AgentWebSearch Object

from agentwebsearch import AgentWebSearch
from agentwebsearch.websearch.request import WebSearchRequest

from agentwebsearch.search.client import DefaultSearchClient
from agentwebsearch.llm import OpenAIChatModel
from agentwebsearch.embedding import OpenAIEmbeddingModel


embedding_model = OpenAIEmbeddingModel(
    model="text-embedding-3-large",
    api_key="YOUR_OPENAI_API_KEY"
)

llm = OpenAIChatModel(
    model="gpt-4o-mini",
    api_key="YOUR_OPENAI_API_KEY",
    temperature=0.7
)

search_client = DefaultSearchClient()

websearch = AgentWebSearch(
    search_client=search_client,
    llm=llm,
    embedding_model=embedding_model
)

req = WebSearchRequest(
    ...
)

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

agentwebsearch_py-0.0.1.tar.gz (39.3 kB view details)

Uploaded Source

Built Distribution

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

agentwebsearch_py-0.0.1-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agentwebsearch_py-0.0.1.tar.gz
  • Upload date:
  • Size: 39.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for agentwebsearch_py-0.0.1.tar.gz
Algorithm Hash digest
SHA256 7ca8411a5c9d849fa016f3cb0604e8f28c2ab7de2426c3b2b5a60e48469b5c13
MD5 d21d07e9257f6ed818362dd4c8f92bf1
BLAKE2b-256 d65f83b12f207999deab2b36ee967166e9274475d7d48eb111c450752731b37a

See more details on using hashes here.

Provenance

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

Publisher: release.yml on enricogoerlitz/agentwebsearch-py

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

File details

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

File metadata

File hashes

Hashes for agentwebsearch_py-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0d1adca87c16e0e649835754b31d6551f4f9a307c24a8a5ba600375c8d409184
MD5 0b1afd9808f7d90e470cd8b8765ae270
BLAKE2b-256 66c2419c753a704644e08296578c50d6451c6a7ec6060b089e0f9de607d168c1

See more details on using hashes here.

Provenance

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

Publisher: release.yml on enricogoerlitz/agentwebsearch-py

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 Pingdom Monitoring Sentry Error logging StatusPage Status page