An open API service indexing awesome lists of open source software.

https://github.com/tameronline/prompt_faiss


https://github.com/tameronline/prompt_faiss

Last synced: over 1 year ago
JSON representation

Awesome Lists containing this project

README

          

Z# πŸ” FAISS Similarity Search Project

## πŸ“Œ Introduction
This project focuses on **similarity search using FAISS**, a powerful library by **Facebook AI** that enables fast search in high-dimensional data.

## ⚑ Features
- Supports **multiple data types** (text, images, audio, video, medical, geospatial, tabular, etc.).
- Uses **LangChain and Ollama** to generate AI-driven similarity search guides.
- Compatible with **multiple operating systems** with dedicated setup scripts.
- **GitHub Actions integration** for automated testing and validation.

---

## πŸ“‚ Project Structure

```bash
β”œβ”€β”€ README.md # This file
β”œβ”€β”€ requirements.txt # Dependencies
β”œβ”€β”€ runtime.txt # Python version required
β”œβ”€β”€ src/ # Source code
β”‚ β”œβ”€β”€ __init__.py
β”‚ β”œβ”€β”€ main.py # Main script for generating FAISS search guides using LangChain and Ollama
β”‚ β”œβ”€β”€ runner.py # Interactive script execution
β”œβ”€β”€ tests/ # Unit tests
β”‚ β”œβ”€β”€ __init__.py
β”‚ β”œβ”€β”€ ollama.py # Ollama test script
β”‚ β”œβ”€β”€ test.py # Main test runner
β”œβ”€β”€ .github/workflows/ # CI/CD with GitHub Actions
β”‚ β”œβ”€β”€ main.yml
β”œβ”€β”€ Virtual Environment Setup
β”‚ β”œβ”€β”€ activate_project.sh (Linux & Mac)
β”‚ β”œβ”€β”€ activate_project.bat (Windows - CMD)
β”‚ β”œβ”€β”€ activate_project.ps1 (Windows - PowerShell)

```
# FAISS Similarity Search Guides
---

### [πŸ” Text Similarity Search](text_faiss_similarity_search.md)
### [πŸ“Έ Image Similarity Search](images_faiss_similarity_search.md)
### [🎡 Audio Similarity Search](audio_faiss_similarity_search.md)
### [πŸŽ₯ Video Similarity Search](video_faiss_similarity_search.md)
### [πŸ₯ Medical Similarity Search](medical_faiss_similarity_search.md)
### [πŸ“Š Tabular Similarity Search](tabular_faiss_similarity_search.md)
### [πŸ—ΊοΈ Geospatial Similarity Search](geospatial_faiss_similarity_search.md)
### [πŸ€– AI Embeddings Similarity Search](ai_embeddings_faiss_similarity_search.md)

## πŸš€ How to Run

### 1️⃣ Install Dependencies
```bash
pip install -r requirements.txt
```

### 2️⃣ Activate Virtual Environment
- **Linux & Mac:**
```bash
source activate_project.sh
```
- **Windows (CMD):**
```cmd
activate_project.bat
```
- **Windows (PowerShell):**
```powershell
.\activate_project.ps1
```

### 3️⃣ Run the Project
```bash
python src/main.py
```

### 4️⃣ Run Tests
```bash
pytest tests/
```

---

## πŸ› οΈ Technologies Used
- **FAISS** - Facebook AI Similarity Search
- **LangChain** - AI workflow management
- **Ollama** - Local AI query execution
- **Python 3.10+**
- **GitHub Actions** - CI/CD automation

---

## πŸ“œ License
This project is licensed under the [MIT License](LICENSE).

---

## πŸ“ž Contact & Contributions
If you'd like to **contribute**, feel free to open a **Pull Request** or **create an Issue** on GitHub!

> **πŸ‘¨β€πŸ’» Developer:** [TamerOnLine](https://github.com/TamerOnLine)