How to do live search/research with AI

How to do live search/research with AI

May 23, 2025

Last year I had the Groq YT project as a very useful one.

And the notebookLM as a kind of RAG from google, that could be useful to summarize docs.

Today, notebookLM can summary not only PDFs, but it also sumarizes youtube videos (given a link) and…it can provide even a audio summary of it / podcast like summary.

Which is crazy.

But how about other ways to interact with real/live data for LLM context?

⚠️
Mind the contamination that live data might provide to the LLMs. Plus the possibility to mis Dynamic content - like gh discussions

Live Search with LLMs

Recently, xAI added live search capabilities to their models.

Goodbye knowledge cuttof they say!

But actually, there has been couple of tools that allow us to interact with Web information.

Grok Live Search

Few weeks ago I was tinkering with grok API, which can be used also via LiteLLM.

What you need to have handy:

Local Deep Researcher

Its all about the magic of langgraph.

shields.io Stars

git clone https://github.com/JAlcocerT/local-deep-researcher


docker-compose -f ./local-deep-researcher/Z_DeployMe/docker-compose.yml up -d
# docker exec -it ollama sh
# ollama pull deepseek-r1:8b

cd local-deep-researcher
cp .env.example .env #by default ollama x DDG as search engine
uvx \
                 --refresh \
                 --from "langgraph-cli[inmem]" \
                 --with-editable . \
                 --python 3.11 \
                 langgraph dev

#https://langchain-ai.github.io/langgraph/cloud/reference/cli/#dev
uvx \
  --refresh \
  --from "langgraph-cli[inmem]" \
  --with-editable . \
  --python 3.11 \
  langgraph dev --host 0.0.0.0 --port 8011 # <-- Added host and port



uvx \
  --refresh \
  --from "langgraph-cli[inmem]" \
  --with-editable . \
  --python 3.11 \
  langgraph dev --host 192.168.1.8 --port 8011

See how:

  1. Your search gets translated into a search query: how can i selfhost raneto with docker-compose?
  2. Results are loaded from DDG

Local Deep Researcher - Web Query Step

Perplexity

Sometime ago Whoogle and SearXNG to make private Web Search.

But GenAI can help us to retrieve relevant Web results.

https://fossengineer.com/selfhosting-whoogle-docker/ https://fossengineer.com/selfhosting-whoogle-docker/#searxng-with-docker

Perplexica is an AI-powered search engine. It is an Open source alternative to Perplexity AI

The Perplexica AI Project

The AI-powered search engine ✅ An Alternative to Perplexity AI

It uses advanced machine learning algorithms like similarity searching and embeddings to refine results and provides clear answers with sources cited.

Using SearxNG to stay current and fully open source, Perplexica ensures you always get the most up-to-date information without compromising your privacy.

Why Perplexica AI?

  • All Mode: Searches the entire web to find the best results.
  • Writing Assistant Mode: Helpful for writing tasks that does not require searching the web.
  • Academic Search Mode: Finds articles and papers, ideal for academic research.
  • YouTube Search Mode: Finds YouTube videos based on the search query.
  • Wolfram Alpha Search Mode: Answers queries that need calculations or data analysis using Wolfram Alpha.
  • Reddit Search Mode: Searches Reddit for discussions and opinions related to the query.

SelfHosting Perplexica AI

git clone https://github.com/ItzCrazyKns/Perplexica.git
cd Perplexica

cp sample.config.toml config.toml #Rename the sample.config.toml file to config.toml
docker-compose up -d
The docker compose will deploy your own SearXNG API… ⏬

As per: https://www.fahdmirza.com/2024/07/install-perplexica-with-searxng-and.html

conda create -n px python=3.11 -y && conda activate px

pip install torch transformers accelerate huggingface_hub sentencepiece 

git clone https://github.com/searxng/searxng && cd searxng

nano ./searx/settings.yml #add search format json
make docker.build   

docker run --rm -d -p 32768:8080 -v "${PWD}/searxng:/etc/searxng" -e "BASE_URL=http://localhost:$PORT/" -e "INSTANCE_NAME=my-instance" searxng/searxng

#ollama
curl -fsSL https://ollama.com/install.sh | sh
ollama pull llama3
ollama pull bgesmall

#perplexica
git clone https://github.com/ItzCrazyKns/Perplexica.git && cd Perplexica
docker-compose up -d

Conclusions

Other F/OSS Alternatives to PerplexityAI

An AI-powered search engine with a generative UI

LLocalSearch is a completely locally running search aggregator using LLM Agents. The user can ask a question and the system will use a chain of LLMs to find the answer. The user can see the progress of the agents and the final answer. No OpenAI or Google API keys are needed.

SearchGPT / Perplexity clone, but personalised for you.


FAQ

Scrap the Web with AI

Python scraper based on AI

F/OSS Search Engines

🚀 An open source alternative to searx which provides a modern-looking ✨, lightning-fast ⚡, privacy respecting 🥸, secure 🔒 meta search engine

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

More Search Engines

  • Brave Search (Independent Search)
  • Ecosia (Bing Based)
  • DuckDuckGo - This can be used without API keys!
  • Yandex, StartPage, SearchEncrypt, Swisscow, Mojeek…

Interesting Search Engines to have a look:

Gaps to Cover

I got to know about these when playing around with the AIssistant here

Latitude (prompt engineering) and…latitude analytics 📌

Latitude is an open-source prompt engineering platform designed to streamline AI feature development.

It addresses the following problems:

  • Managing prompts can be cumbersome when they’re embedded in code.
  • Testing AI outputs can be inconsistent and challenging.
  • Analyzing performance metrics of AI models requires a centralized tool.

As per the docs, for now SDKs are Rust or JS/TS

Key Features:

  • Collaborative Prompt Management: Enables team collaboration on prompt development.

  • Testing and Validation: Uses LLMs to verify AI responses for accuracy and relevance.

  • Performance Insights: Provides analytics on response times and cost comparisons.

  • Version Control: Tracks changes in prompts for better management.

  • API and SDK Support: Facilitates easy integration into existing systems.

  • Open-Source Community Driven: Encourages contributions and improvements from users.

Deployment Options:

  1. Latitude Cloud: Managed solution for quick setup.

  2. Latitude Self-Hosted: Open-source version for greater control and customization.

Community Engagement:

  • A vibrant community on Slack for support and collaboration.

  • Contributions are welcomed to enhance the platform.

In conclusion, Latitude simplifies the process of integrating AI into products while facilitating ongoing evaluation and improvement.

Similar Projects: TBC

Latitude is an open-source framework created to simplify embedded analytics by providing a powerful analytics layer between databases and end-users.

It allows developers to integrate data analytics into applications efficiently without requiring deep expertise in database management or visualization.

Among other DBs, latitude works with SQLite!

Key Features:

  • Database Connectivity: Latitude can connect to a variety of databases and data warehouses, providing flexibility for different environments and data sources.
  • Parameterized SQL Queries as API Endpoints: It allows users to create parameterized SQL queries and expose them as API endpoints, making it easy to query data dynamically and integrate with other systems.
  • Interactive Visualizations: Latitude supports interactive data visualizations in frontend frameworks (such as React, Svelte, and Vue), or alternatively, it can display them within iframes for easy embedding in web pages.
  • Caching for Performance: The framework includes built-in caching, which optimizes query performance and reduces the load on databases by storing previously queried results.
  • Security: Latitude is SSL-ready and includes protections against SQL injection, ensuring secure communication between the client and the database.
  • Community-driven: The project encourages contributions from developers, fostering an active open-source community.

Use Cases:

  • Quick Dashboard Creation: Developers can rapidly build dashboards and visualizations, allowing end-users to explore and interact with data without extensive custom development.
  • Single-command Deployment: Latitude can be deployed quickly with a single command, making it easier for developers to get up and running without complex configurations.
  • Framework Integration: Latitude integrates seamlessly with popular frontend frameworks like React, Svelte, and Vue, which are commonly used for building modern web applications.

Community and Support:

  • Latitude has an active community on Slack, where developers can collaborate, share insights, and get support.
  • Comprehensive documentation is available to guide users through the setup process and help with integration into various systems.

Current Status:

  • The project is no longer maintained as the focus has shifted to a new project, Latitude LLM, which likely focuses on new features or different capabilities.
  • Existing users can still use the codebase and license as-is, though no new updates are being released.

Conclusion:

Latitude simplifies the integration of embedded analytics for developers, allowing for easy creation and deployment of dashboards, visualizations, and queries.

Its simplicity and integration with modern frontend frameworks make it a valuable tool for building analytics-rich applications.

Similar projects to Latitude include:

  • Superset: An open-source data visualization tool that allows users to create and share dashboards.
  • Metabase: Another open-source analytics platform that focuses on simple setup and user-friendly dashboards.

There are ofc tools already waiting to be used…

To learn how to interact with real time internet data - GNews, Perplexica,… 📌

GNews - https://github.com/ranahaani/GNews

  • Summary:
    GNews is a lightweight Python package that provides an API to search for articles on Google News, returning results in JSON format. It supports fetching articles by keywords, topics, and locations, making it versatile for news aggregation.

  • Key Features:

    • Lightweight: Easy to use with minimal setup.
    • Integration: Fetches articles directly from Google News RSS Feed.
    • Global Support: Covers over 141 countries and 41 languages.
    • Structured Results: Returns data in JSON format for easy parsing.
  • Pros:

    • Simple Installation: No complex dependencies.
    • Convenience: Eliminates the need for custom scrapers.
    • Flexible Searches: Supports a variety of search parameters.
  • Cons:

    • Limited Sources: Only fetches from Google News.
    • Dependency: Relies on the availability of Google News RSS feeds.
  • Alternatives:

    • NewsAPI
    • ContextualWeb News API
    • Bing News Search API

From Perplexica to OpenSearch GPT [AI Search Engines!] - https://github.com/supermemoryai/opensearch-ai

OpenSearch GPT, an open-source, AI-powered search engine that personalizes search results by learning from user interactions. It emphasizes key features like its Mem Zero memory system for remembering past interactions, its robust technological framework, and its versatility as a tool for writing assistance and data management.

OpenSearch GPT aims to enhance productivity and streamline workflows, offering transparency and flexibility as an alternative to proprietary search engines.


Key Points

  • Personalization: Delivers tailored search results by learning from user behavior.
  • Memory System: Includes Mem Zero to retain past interactions and improve relevance.
  • Technology Framework: Built using Versal AI ADK and Next.js for a robust experience.
  • Versatility: Functions as a writing assistant and supports data management tasks.
  • Open Source: Provides transparency and customization options for users.

Pros and Cons

Pros:

  • Highly personalized search experience.
  • Open-source design allows community involvement and customization.
  • Supports a range of functionalities for diverse use cases.

Cons:

  • Requires Google account sign-in to access the platform.
  • May pose a learning curve for users new to open-source tools.

Alternatives

  • Perplexity AI
  • OpenAI’s Search Engine Prototype

How to use HF?

In HuggingFace you will find really cool and Open AI Projects to try out: