Spaces:
Sleeping
Sleeping
File size: 314 Bytes
3394ee5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | import os
import sys
from dotenv import load_dotenv
load_dotenv()
sys.path.append(os.getcwd())
from src.rag.pipeline import RAGPipeline
try:
pipeline = RAGPipeline()
gen = pipeline.stream_query("What is LoRA?", top_k=2)
for x in gen:
print(x)
except Exception as e:
print(f"Error: {e}")
|