sosa123454321/ecoai-knowledge
Viewer • Updated • 32
How to use sosa123454321/ecoai-rag-encoder with Scikit-learn:
from huggingface_hub import hf_hub_download
import joblib
model = joblib.load(
hf_hub_download("sosa123454321/ecoai-rag-encoder", "sklearn_model.joblib")
)
# only load pickle files from sources you trust
# read more about it here https://skops.readthedocs.io/en/stable/persistence.htmlFitted retriever for FindExpert.ir ecoAI (not a 14B LoRA, not a MiniLM fork).
This environment has ~2GB RAM and no GPU, so Qwen/E5 cannot be trained here. v1 “fine-tune” = TF-IDF cosine fitted on sosa123454321/ecoai-knowledge.
RAG Space that uses these weights: sosa123454321/ecoai-space
| File | Role |
|---|---|
encoder.joblib |
sklearn TfidfVectorizer + doc matrix |
encoder.json |
vocab + idf + sparse docs for the static Space |
Query the same way the Space does: vectorize the user text with this vocabulary, cosine vs documents, then write with Gemini on findexpert.ir (or future Qwen2.5-0.5B LoRA from ecoai-sft).
Dense upgrade later: encode passage: / query: with intfloat/multilingual-e5-small — do not replace this repo with forked MiniLM weights.