search
HomeTechnology peripheralsAIHow to Easily Deploy a Local Generative Search Engine Using VerifAI

This article details a significant update to the VerifAI project, an open-source generative search engine. Previously focused on biomedical data (VerifAI BioMed, accessible at //m.sbmmt.com/link/ae8e20f2c7accb995afbe0f507856c17), VerifAI now offers a core functionality (VerifAI Core) allowing users to create their own generative search engine from local files. This empowers individuals, organizations, and enterprises to build custom search solutions.

Key Features and Architecture:

VerifAI Core's architecture comprises three main components:

  1. Indexing: Utilizes OpenSearch for lexical indexing and Qdrant for semantic indexing (using Hugging Face embedding models). This dual approach ensures comprehensive document representation. The indexing script supports various file types (PDF, Word, PowerPoint, Text, Markdown).

How to Easily Deploy a Local Generative Search Engine Using VerifAI

  1. Retrieval-Augmented Generation (RAG): Combines results from OpenSearch's lexical search and Qdrant's semantic search (using dot product similarity). The merged results inform a prompt for the chosen large language model (LLM). The default LLM is a locally deployed, fine-tuned version of Mistral, but users can specify others (OpenAI API, Azure API, etc., via vLLM, OLlama, or Nvidia NIMs).

  2. Verification Engine: A crucial component that checks the generated answer against the source documents, minimizing hallucinations.

How to Easily Deploy a Local Generative Search Engine Using VerifAI

Setup and Installation:

  1. Clone the Repository: git clone https://github.com/nikolamilosevic86/verifAI.git

  2. Create a Python Environment: python -m venv verifai; source verifai/bin/activate

  3. Install Dependencies: pip install -r verifAI/backend/requirements.txt

  4. Configure VerifAI: Configure the .env file (based on .env.local.example) specifying database credentials (PostgreSQL), OpenSearch, Qdrant, LLM details (path, API key, deployment name), embedding model, and index names.

  5. Install Datastores: python install_datastores.py (requires Docker).

  6. Index Files: python index_files.py <path-to-directory-with-files></path-to-directory-with-files> (e.g., python index_files.py test_data).

  7. Run the Backend: python main.py

  8. Run the Frontend: Navigate to client-gui/verifai-ui, run npm install, then npm start.

How to Easily Deploy a Local Generative Search Engine Using VerifAI How to Easily Deploy a Local Generative Search Engine Using VerifAI

Contribution and Future Development:

VerifAI is an open-source project welcoming contributions. The project was initially funded by the Next Generation Internet Search project (European Union) and developed in collaboration with the Institute for Artificial Intelligence Research and Development of Serbia and Bayer A.G. Further development is ongoing, with a focus on expanding its capabilities and usability. Contributions are encouraged via pull requests, bug reports, and feature requests. Visit //m.sbmmt.com/link/d16c19f1f2ab8361fda1f625ce3ff26a for more information.

The above is the detailed content of How to Easily Deploy a Local Generative Search Engine Using VerifAI. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
AI And The Future Of Work: Andrew Yang's Caution Vs. Labor's OptimismAI And The Future Of Work: Andrew Yang's Caution Vs. Labor's OptimismAug 15, 2025 pm 11:24 PM

Two contrasting visions emerged on how artificial intelligence is transforming the world of work—and what society should do in response. Andrew Yang emphasizes the urgent risks of job displacement driven by AI, while Labor Secretary Julie Su (referre

Fei-Fei Li Challenges Silicon Valley's Obsession With AGIFei-Fei Li Challenges Silicon Valley's Obsession With AGIAug 15, 2025 pm 11:15 PM

Empathy, curiosity, and responsibility, she said, should be the drivers. That’s a very different tone from Geoffrey Hinton, who told the same audience just a day prior that our survival might one day depend on giving AI something like a mother’s prot

Voice AI Is Changing How We Do Business, Starting With LoansVoice AI Is Changing How We Do Business, Starting With LoansAug 15, 2025 pm 09:36 PM

The Loan Bottleneck Challenge Getting a mortgage finalized used to take an overwhelming number of hours—tedious, monotonous work that drained both me and my clients. And if that’s the case for residential loans, commercial lending is far worse. Acco

AI Demand-Shaping And The Frictionless Rub Of Solipsistic EfficiencyAI Demand-Shaping And The Frictionless Rub Of Solipsistic EfficiencyAug 15, 2025 pm 09:30 PM

Broadly speaking, historians agree that the sensationalist reporting of Spanish atrocities in Cuba and the mysterious sinking of the USS Maine, which typified the Yellow Journalism era, contributed to the U.S. decision to enter the Spanish-American W

ChatGPT-5 Uses Language Like A SwordChatGPT-5 Uses Language Like A SwordAug 15, 2025 pm 09:27 PM

So what truly sets ChatGPT-5 apart?From the very first sentence of Ethan Mollick’s latest piece on GPT-5, it’s clear we’re witnessing a seasoned expert dissecting one of the most formidable AI models to emerge from the rapidly evolving world of artif

Two Dozen Signs Of AI AccelerationTwo Dozen Signs Of AI AccelerationAug 15, 2025 pm 09:03 PM

It’s clear we’re in the midst of a rapid technological shift. As AI continues to evolve at breakneck speed, people are searching for concrete data—not just about current market performance or enterprise integration, but also about how experts anticip

AI In The Classroom: A Roadmap For Educators And InnovatorsAI In The Classroom: A Roadmap For Educators And InnovatorsAug 15, 2025 pm 08:42 PM

8 Ethical Ways Teachers Can Use AI In Their Classrooms Here’s a roadmap to integrate AI into classrooms ethically, effectively and inclusively for: • Teachers and school leaders seeking high-impact, real-world strategies that preserve equity, foste

A Fourth Path: Malaysia's Quiet AI RevolutionA Fourth Path: Malaysia's Quiet AI RevolutionAug 15, 2025 pm 08:36 PM

The Narrow Lens of AI Dominance The dominant narrative around artificial intelligence has narrowed into a geopolitical triad: the United States, China, and Europe — each representing distinct models of innovation shaped by capitalism, state control,

See all articles

Hot AI Tools

Undress AI Tool

Undress AI Tool

Undress images for free

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft