back to not making breaks

This commit is contained in:
Yannick Stephan
2025-02-16 15:08:50 +01:00
parent 0a8c94a1e0
commit 0e7aff96bb
10 changed files with 58 additions and 11 deletions

View File

@@ -5,8 +5,9 @@ from typing import Any, final
import json
import numpy as np
from tqdm.asyncio import tqdm as tqdm_async
from dataclasses import dataclass
import pipmaster as pm
from lightrag.utils import (
logger,
@@ -16,8 +17,12 @@ from lightrag.base import (
BaseVectorStorage,
)
if not pm.is_installed("faiss"):
pm.install("faiss")
try:
import faiss
from tqdm.asyncio import tqdm as tqdm_async
except ImportError as e:
raise ImportError(
"`faiss` library is not installed. Please install it via pip: `pip install faiss`."