fix precommit and fix redame install method

This commit is contained in:
yichuan520030910320
2025-07-27 16:36:30 -07:00
parent c1a5d0c624
commit 60eaa8165c
2 changed files with 4 additions and 16 deletions

View File

@@ -9,15 +9,8 @@ repos:
- id: check-merge-conflict - id: check-merge-conflict
- id: debug-statements - id: debug-statements
- repo: https://github.com/psf/black
rev: 24.1.1
hooks:
- id: black
language_version: python3
- repo: https://github.com/astral-sh/ruff-pre-commit - repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.1 rev: v0.2.1
hooks: hooks:
- id: ruff - id: ruff
args: [--fix]
- id: ruff-format - id: ruff-format

View File

@@ -52,7 +52,11 @@ LEANN provides two installation methods: **pip install** (quick and easy) and **
### 🚀 Quick Install (Recommended for most users) ### 🚀 Quick Install (Recommended for most users)
Our project provides many **ready-to-use examples**. If you installed LEANN via pip, you can clone our examples and run them immediately:
```bash ```bash
git clone git@github.com:yichuan-w/LEANN.git leann
cd leann
uv pip install leann uv pip install leann
``` ```
@@ -147,15 +151,6 @@ response = chat.ask(
LEANN supports RAG on various data sources including documents (.pdf, .txt, .md), Apple Mail, Google Search History, WeChat, and more. LEANN supports RAG on various data sources including documents (.pdf, .txt, .md), Apple Mail, Google Search History, WeChat, and more.
Our project provides many **ready-to-use examples**. If you installed LEANN via pip, you can clone our examples and run them immediately:
```bash
git clone git@github.com:yichuan-w/LEANN.git leann
cd leann
```
> **Note:** If you built from source, you already have the examples and can skip cloning.
### 📄 Personal Data Manager: Process Any Documents (.pdf, .txt, .md)! ### 📄 Personal Data Manager: Process Any Documents (.pdf, .txt, .md)!
Ask questions directly about your personal PDFs, documents, and any directory containing your files! Ask questions directly about your personal PDFs, documents, and any directory containing your files!