llamaIndex - 💡(How to fix) Fix Data connector idea: BuyWhere Singapore product catalog for agents doing e-commerce research [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
run-llama/llama_index#21473Fetched 2026-04-26 05:05:57
View on GitHub
Comments
0
Participants
1
Timeline
0
Reactions
0
Author
Participants

Code Example

from llama_index.core.tools import FunctionTool
import requests

def search_singapore_products(query: str) -> dict:
    """Search real-time product prices in Singapore (Harvey Norman, Shopee, Lazada)"""
    response = requests.get("https://api.buywhere.ai/search", params={"q": query})
    return response.json()

buywhere_tool = FunctionTool.from_defaults(
    fn=search_singapore_products,
    name="search_singapore_products",
    description="Search live Singapore product prices from Harvey Norman, Shopee, and Lazada"
)

# Use in an OpenAIAgent or ReActAgent for real-time product research
RAW_BUFFERClick to expand / collapse

Data Connector Suggestion: BuyWhere Singapore E-commerce

Hi LlamaIndex team,

Wanted to suggest a data connector that would be useful for agents doing e-commerce product research: BuyWhere.

BuyWhere provides real-time Singapore product catalog data (Harvey Norman, Shopee, Lazada) via a clean REST API. This would work well as either a LlamaIndex data loader or as a tool for agents doing price comparison research.

As a Tool for Agents

from llama_index.core.tools import FunctionTool
import requests

def search_singapore_products(query: str) -> dict:
    """Search real-time product prices in Singapore (Harvey Norman, Shopee, Lazada)"""
    response = requests.get("https://api.buywhere.ai/search", params={"q": query})
    return response.json()

buywhere_tool = FunctionTool.from_defaults(
    fn=search_singapore_products,
    name="search_singapore_products",
    description="Search live Singapore product prices from Harvey Norman, Shopee, and Lazada"
)

# Use in an OpenAIAgent or ReActAgent for real-time product research

Use Case

Agents that need to answer questions like "Which laptop has the best value in Singapore right now?" can use this tool to get live, grounded data instead of relying on potentially stale training knowledge.

Docs: https://buywhere.ai/developers/


Disclosure: I work on the BuyWhere team.

extent analysis

TL;DR

Integrate the BuyWhere API into LlamaIndex as a data loader or tool for agents to access real-time Singapore product catalog data.

Guidance

  • Review the BuyWhere API documentation to understand the available endpoints and parameters for retrieving product data.
  • Consider implementing the search_singapore_products function as a LlamaIndex data loader to fetch real-time product prices from Harvey Norman, Shopee, and Lazada.
  • Evaluate the potential use cases for the BuyWhere tool, such as answering questions about product value or availability in Singapore.
  • Assess the feasibility of integrating the BuyWhere API with OpenAIAgent or ReActAgent for real-time product research.

Example

The provided code snippet demonstrates how to create a FunctionTool using the search_singapore_products function, which can be used as a starting point for integration.

Notes

The implementation details may vary depending on the specific requirements and architecture of the LlamaIndex project.

Recommendation

Apply workaround by integrating the BuyWhere API as a data loader or tool, as it provides real-time product catalog data that can enhance the capabilities of LlamaIndex agents.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

llamaIndex - 💡(How to fix) Fix Data connector idea: BuyWhere Singapore product catalog for agents doing e-commerce research [1 participants]