LlamaIndex-നുള്ള സൗജന്യ LLM
OpenAI-compatible API-കൾക്ക് LlamaIndex-ൽ രണ്ട് classes ഉണ്ട്: chat-ന് OpenAILike, embeddings-ന് OpenAILikeEmbedding. ഈ ഗൈഡ് രണ്ടിനെയും FreeLLMAPI-യിലേക്ക് ചൂണ്ടിക്കാണിക്കുന്നു. ഇത് ഒരു key-ക്ക് പിന്നിൽ 45 സൗജന്യ provider tier-കൾ ഒരുമിച്ച് ചേർക്കുന്നു. നിങ്ങൾ ഒരു retrieval-augmented generation (RAG) index ഉണ്ടാക്കുന്നു, അതിൽ query ചെയ്യുന്നു, ഒരു agent ചേർക്കുന്നു. Code rate limit-കൾ കൈകാര്യം ചെയ്യുന്നു.
കോഡ്, മോഡൽ പേരുകളും തത്സമയ കാറ്റലോഗ് ലേബലുകളും ഇംഗ്ലീഷിൽ കാണിക്കുന്നു.
പാക്കേജുകൾ ഇൻസ്റ്റാൾ ചെയ്യുക
FreeLLMAPI ഇൻസ്റ്റാൾ ചെയ്ത് ഡാഷ്ബോർഡിലെ Keys പേജിൽ രണ്ടോ അതിലധികമോ provider-കളിൽ നിന്നുള്ള സൗജന്യ key-കൾ ചേർക്കുക. Unified key പകർത്തുക. തുടർന്ന് LlamaIndex പാക്കേജുകൾ ഇൻസ്റ്റാൾ ചെയ്യുക.
ഇൻസ്റ്റാൾ ചെയ്യുക
curl -fsSL https://freellmapi.co/install.sh | bash
pip install -U llama-index-core \
llama-index-llms-openai-like \
llama-index-embeddings-openai-like
export FREELLMAPI_BASE_URL=http://localhost:3001/v1
export FREELLMAPI_API_KEY=<unified-key>OpenAI അറിയാത്ത മോഡൽ പേരുകളോടെ OpenAI class, llama-index-llms-openai-ൽ നിന്നുള്ളത് ഉപയോഗിക്കരുത്. ആ class മോഡൽ പേരുകളും context വലുപ്പങ്ങളും OpenAI മോഡലുകളുടെ പട്ടികയുമായി പരിശോധിക്കുന്നു. OpenAILike അങ്ങനെ ചെയ്യുന്നില്ല, അതിനാൽ ഈ മൂല്യങ്ങൾ നിങ്ങൾ തന്നെ സജ്ജമാക്കുന്നു.
LLM-ഉം embedding മോഡലും സജ്ജമാക്കുക
settings.py
import os
from llama_index.core import Settings
from llama_index.llms.openai_like import OpenAILike
from llama_index.embeddings.openai_like import OpenAILikeEmbedding
BASE = os.environ["FREELLMAPI_BASE_URL"]
KEY = os.environ["FREELLMAPI_API_KEY"]
Settings.llm = OpenAILike(
model="auto",
api_base=BASE,
api_key=KEY,
is_chat_model=True, # use /v1/chat/completions
is_function_calling_model=True, # needed for FunctionAgent
context_window=32000, # the smallest window in your chain
max_retries=5,
timeout=90,
)
Settings.embed_model = OpenAILikeEmbedding(
model_name="bge-m3", # one family, 1024 dimensions
api_base=BASE,
api_key=KEY,
embed_batch_size=16,
max_retries=10,
)- is_chat_model=True: ഇത് ഇല്ലെങ്കിൽ LlamaIndex request-കൾ പഴയ completions endpoint-ലേക്ക് അയയ്ക്കുന്നു.
- context_window: Prompt-ൽ എത്ര retrieved chunks ഉൾക്കൊള്ളാമെന്ന് തീരുമാനിക്കാൻ LlamaIndex ഈ മൂല്യം ഉപയോഗിക്കുന്നു.
autoഉപയോഗിച്ചാൽ router വ്യത്യസ്ത മോഡലുകൾ തിരഞ്ഞെടുക്കാം. നിങ്ങളുടെ chain-ലെ ഏറ്റവും ചെറിയ context window ഉപയോഗിക്കുക. - is_function_calling_model=True: നിങ്ങളുടെ chain-ൽ tool-calling മോഡലുകൾ ഉള്ളപ്പോൾ മാത്രം ഇത് സജ്ജമാക്കുക.
- embed_batch_size: ഓരോ batch ഒരു request ആണ്. വലിയ batch-കൾ മിനിറ്റിൽ കുറച്ച് request-കൾ ഉപയോഗിക്കുന്നു.
RAG prompt-ൽ നിരവധി retrieved chunks ഉണ്ടാകും, അതിനാൽ chat മോഡലിന് അവയ്ക്ക് ഇടം വേണം. RAG-ന് നീണ്ട context ഉള്ള മോഡലുകളോടെ ഒരു fallback chain profile ഉണ്ടാക്കുക. തുടർന്ന് model="auto:<profile>" സജ്ജമാക്കുക, context_window ആ profile-ലെ ഏറ്റവും ചെറിയ window-ലേക്ക് ഉയർത്തുക. ഇന്ന് ഏറ്റവും വലിയ context window ഉള്ള സൗജന്യ മോഡലുകൾ ഇവയാണ്:
| മോഡൽ | സൗജന്യമായി ലഭ്യം | കോൺടെക്സ്റ്റ് | സൗജന്യ പരിധികൾ (ഏറ്റവും മികച്ച ഓഫർ) | ടൂളുകൾ | ദൃശ്യ ശേഷി |
|---|---|---|---|---|---|
| OpenAI: GPT-6 Luna | ElectronHub | 1.1M | $0.25/week shared free credits | ഇല്ല | ഇല്ല |
| Gemini 3.8 Flash | APINex, Google AI Studio | 1M | 5 അഭ്യർഥന/മിനിറ്റ് 10M weighted tokens/day shared across APINex free routes; 3x token multiplier; 5 requests/minute/account | അതെ | അതെ |
| Gemini 3.7 Flash | Google AI Studio | 1M | 10 അഭ്യർഥന/മിനിറ്റ് 20 അഭ്യർഥന/ദിവസം 250,000 ടോക്കൺ/മിനിറ്റ് ~3M | അതെ | അതെ |
| DeepSeek V4 Flash | AMD Radeon Cloud, BazaarLink, ElectronHub | 1M | 10 അഭ്യർഥന/മിനിറ്റ് 50 അഭ്യർഥന/ദിവസം Shared rate limit | അതെ | ഇല്ല |
| DeepSeek V4 Flash 0731 | ElectronHub, Router9 | 1M | 10,000 credits/month (~$1), shared; account-anniversary reset | ഇല്ല | ഇല്ല |
| Gemini 3.6 Flash | Google AI Studio | 1M | 10 അഭ്യർഥന/മിനിറ്റ് 20 അഭ്യർഥന/ദിവസം 250,000 ടോക്കൺ/മിനിറ്റ് ~3M | അതെ | അതെ |
| GLM-5.2 | ModelScope, Router9 | 1M | 100 അഭ്യർഥന/ദിവസം Daily login: 200 credits + 50 for linked Alibaba Cloud; 24h expiry; shared; noncommercial experience | ഇല്ല | ഇല്ല |
| Gemini 3.5 Flash | Google AI Studio | 1M | 10 അഭ്യർഥന/മിനിറ്റ് 20 അഭ്യർഥന/ദിവസം 250,000 ടോക്കൺ/മിനിറ്റ് ~3M | അതെ | അതെ |
പൊരുത്തപ്പെടുന്ന 115 സൗജന്യ മോഡലുകളിൽ 8 എണ്ണം കാണിക്കുന്നു. എല്ലാ മോഡലുകളും കാണുക.
FreeLLMAPI കാറ്റലോഗിൽ നിന്നുള്ള തത്സമയ ഡാറ്റ (പതിപ്പ് 2026.11.19, 2026-11-19 ൽ പരിശോധിച്ചത്). സൗജന്യ പരിധികൾ പലപ്പോഴും മാറുന്നു. കാറ്റലോഗ് എല്ലാ ദിവസവും പരിശോധിക്കുന്നു.
ഒരു ഉപയോക്താവിനെ ഒരേ മോഡലിൽ നിലനിർത്താൻ, X-Session-Id header അയയ്ക്കുക. OpenAILike default_headers സ്വീകരിക്കുന്നു, ഉദാഹരണത്തിന് default_headers={"X-Session-Id": "user-42"}. FreeLLMAPI ഒരു session-നെ 30 മിനിറ്റ് ഒരേ മോഡലിൽ നിലനിർത്തുന്നു. ഇത് ഒരു chat-ൽ ഉടനീളം ഒരേ ശൈലിയിലുള്ള മറുപടികൾ നൽകുന്നു.
RAG index ഉണ്ടാക്കി query ചെയ്യുക
Script ഒരു folder-ൽ നിന്ന് ഫയലുകൾ വായിക്കുന്നു, embeddings ഉണ്ടാക്കുന്നു, index സേവ് ചെയ്യുന്നു, ഒരു ചോദ്യത്തിന് ഉത്തരം നൽകുന്നു. Index ഉണ്ടാക്കാൻ ഒരു തവണ പ്രവർത്തിപ്പിക്കുക. പിന്നീടുള്ള പ്രവർത്തനങ്ങൾ സേവ് ചെയ്ത index ലോഡ് ചെയ്യുന്നു, ഫയലുകൾ വീണ്ടും embed ചെയ്യുന്നില്ല.
rag.py
import os
import settings # noqa: F401 (sets Settings.llm and Settings.embed_model)
from llama_index.core import (
SimpleDirectoryReader,
StorageContext,
VectorStoreIndex,
load_index_from_storage,
)
PERSIST = "./storage"
def load_index() -> VectorStoreIndex:
if os.path.isdir(PERSIST):
return load_index_from_storage(StorageContext.from_defaults(persist_dir=PERSIST))
docs = SimpleDirectoryReader("./docs").load_data()
index = VectorStoreIndex.from_documents(docs, show_progress=True)
index.storage_context.persist(persist_dir=PERSIST)
return index
if __name__ == "__main__":
query_engine = load_index().as_query_engine(similarity_top_k=4, streaming=True)
response = query_engine.query("How do I rotate the API keys?")
response.print_response_stream()
for node in response.source_nodes:
print("\nSource:", node.metadata.get("file_name"), round(node.score or 0, 3))./storage ഇല്ലാതാക്കി index വീണ്ടും ഉണ്ടാക്കുക.ഇന്നത്തെ catalog-ൽ ഈ embedding മോഡലുകൾ സൗജന്യമാണ്. Dimensions കോളം ഓരോ family-യുടെയും vector വലുപ്പം കാണിക്കുന്നു.
| മോഡൽ | ദാതാവ് | ഡൈമെൻഷനുകൾ | പരമാവധി ഇൻപുട്ട് | സൗജന്യ പരിധി |
|---|---|---|---|---|
Gemini Embeddinggemini-embedding-001 | Google AI Studio | 3072 | 2048 | 100 rpm · 1K req/day |
Nemotron Embed VL 1Bnvidia/llama-nemotron-embed-vl-1b-v2 | NVIDIA NIM | 2048 | 8192 | ~40 rpm |
Nemotron 3 Embed 1B (OR free)nvidia/nemotron-3-embed-1b:free | OpenRouter | 2048 | 32768 | 20 rpm · shared free daily cap |
SEA-LION E5 Embedding 600Maisingapore/SEA-LION-E5-Embedding-600M | SEA-LION | 1024 | 8192 | free · 10 rpm |
SEA-LION ModernBERT Embedding 300Maisingapore/SEA-LION-ModernBERT-Embedding-300M | SEA-LION | 1024 | 8192 | free · 10 rpm |
SEA-LION ModernBERT Embedding 600Maisingapore/SEA-LION-ModernBERT-Embedding-600M | SEA-LION | 1024 | 8192 | free · 10 rpm |
BGE-M3@cf/baai/bge-m3 | Cloudflare Workers AI | 1024 | 8192 | 10K neurons/day (shared) |
EmbeddingGemma 300M@cf/google/embeddinggemma-300m | Cloudflare Workers AI | 768 | 2048 | 10K neurons/day (shared) |
Qwen3 Embedding 0.6B@cf/qwen/qwen3-embedding-0.6b | Cloudflare Workers AI | 1024 | 8192 | 10K neurons/day (shared) |
Cohere Embed v4embed-v4.0 | Cohere | 1536 | 128000 | 1K calls/mo (shared w/ chat) |
Gemini Embedding 2gemini-embedding-2 | Google AI Studio | 3072 | 8192 | free-tier rate limited |
Nemotron 3 Embed 1Bnvidia/nemotron-3-embed-1b | NVIDIA NIM | 2048 | 4096 | ~40 rpm |
PLaMo Embedding 1B (CF)@cf/pfnet/plamo-embedding-1b | Cloudflare Workers AI | 2048 | 4096 | 10K neurons/day (shared) |
BGE Small EN v1.5 (CF)@cf/baai/bge-small-en-v1.5 | Cloudflare Workers AI | 384 | 512 | 10K neurons/day (shared) |
BGE Base EN v1.5 (CF)@cf/baai/bge-base-en-v1.5 | Cloudflare Workers AI | 768 | 512 | 10K neurons/day (shared) |
BGE Large EN v1.5 (CF)@cf/baai/bge-large-en-v1.5 | Cloudflare Workers AI | 1024 | 512 | 10K neurons/day (shared) |
Mistral Embedmistral-embed | Mistral | 1024 | 8192 | free mode · monthly cap (shared) |
Codestral Embedcodestral-embed | Mistral | 1536 | 8192 | free mode · monthly cap (shared) |
Llama Text Embed v2 (Pinecone)llama-text-embed-v2 | Pinecone | 1024 | 2048 | 5M tokens/mo per model |
Multilingual E5 Large (Pinecone)multilingual-e5-large | Pinecone | 1024 | 507 | 5M tokens/mo per model |
Nemotron 3 Embed 1B (Speka)nvidia/nemotron-3-embed-1b | Speka | 2048 | 8192 | $1/month shared across Speka models |
OpenAI: Text Embedding 3 Small (ElectronHub)text-embedding-3-small | ElectronHub | 1536 | 8192 | $0.25/week shared free credits |
OpenAI: Text Embedding 3 Large (ElectronHub)text-embedding-3-large | ElectronHub | 3072 | 8192 | $0.25/week shared free credits |
Nemotron 3 Embed 8B (Inferbase)nvidia-nemotron-3-embed-8b | Inferbase | 4096 | 8192 | 5,000 requests/month; 100 requests and $0.50 usage/day shared |
Qwen 3 Embedding 0.6B (Inferbase)qwen3-embedding-0-6b | Inferbase | 1024 | 8192 | 5,000 requests/month; 100 requests and $0.50 usage/day shared |
Qwen 3 Embedding 4B (Inferbase)qwen3-embedding-4b | Inferbase | 2560 | 8192 | 5,000 requests/month; 100 requests and $0.50 usage/day shared |
Qwen 3 Embedding 8B (Inferbase)qwen3-embedding-8b | Inferbase | 4096 | 8192 | 5,000 requests/month; 100 requests and $0.50 usage/day shared |
LFM2.5 Embedding 350M (LLMTR)liquid/lfm-2.5-embedding-350m-free | LLMTR | 1024 | 512 | Ongoing zero-price route; provider terms apply |
BGE-M3 (SEA-LION)BAAI/bge-m3 | SEA-LION | 1024 | 8192 | free · 10 rpm |
Cohere Embed English v3embed-english-v3.0 | Cohere | 1024 | 512 | 1K calls/mo (shared w/ chat) |
Qwen3 Embedding 8B (OVH)Qwen3-Embedding-8B | OVH AI Endpoints | 4096 | 32768 | free · anonymous 2 req/min per IP |
BGE-M3 (OVH)bge-m3 | OVH AI Endpoints | 1024 | 8192 | free · anonymous 2 req/min per IP |
BGE Multilingual Gemma2 (OVH)bge-multilingual-gemma2 | OVH AI Endpoints | 3584 | 8192 | free · anonymous 2 req/min per IP |
Mistral: Codestral Embed (ElectronHub)codestral-embed | ElectronHub | 1536 | 8192 | $0.25/week shared free credits |
Mistral: Mistral Embed (ElectronHub)mistral-embed | ElectronHub | 1024 | 8192 | $0.25/week shared free credits |
Google: Gemini Embedding 2 (ElectronHub)gemini-embedding-2 | ElectronHub | 3072 | 8192 | $0.25/week shared free credits |
Google: Gemini Embedding 001 (ElectronHub)gemini-embedding-001 | ElectronHub | 3072 | 2048 | $0.25/week shared free credits |
OpenAI: Text Embedding Ada 002 (ElectronHub)text-embedding-ada-002 | ElectronHub | 1536 | 8192 | $0.25/week shared free credits |
Cohere Embed English Light v3embed-english-light-v3.0 | Cohere | 384 | 512 | 1K calls/mo (shared w/ chat) |
Cohere Embed Multilingual v3embed-multilingual-v3.0 | Cohere | 1024 | 512 | 1K calls/mo (shared w/ chat) |
Cohere Embed Multilingual Light v3embed-multilingual-light-v3.0 | Cohere | 384 | 512 | 1K calls/mo (shared w/ chat) |
FreeLLMAPI കാറ്റലോഗിൽ നിന്നുള്ള തത്സമയ ഡാറ്റ (പതിപ്പ് 2026.11.19, 2026-11-19 ൽ പരിശോധിച്ചത്). സൗജന്യ പരിധികൾ പലപ്പോഴും മാറുന്നു. കാറ്റലോഗ് എല്ലാ ദിവസവും പരിശോധിക്കുന്നു.
FunctionAgent ഉപയോഗിച്ച് ഒരു agent ചേർക്കുക
FunctionAgent tool calling ഉപയോഗിക്കുന്നു. Query engine ഒരു tool ആയി നൽകാം, നിങ്ങളുടെ Python functions ചേർക്കാം.
agent.py
import asyncio
from llama_index.core.agent.workflow import FunctionAgent
from llama_index.core.tools import QueryEngineTool
from llama_index.core import Settings
from rag import load_index
docs_tool = QueryEngineTool.from_defaults(
query_engine=load_index().as_query_engine(similarity_top_k=4),
name="project_docs",
description="Answers questions about the project documentation.",
)
def open_tickets(team: str) -> int:
"""Return the number of open tickets for a team."""
return {"billing": 4, "platform": 11}.get(team, 0)
agent = FunctionAgent(
tools=[docs_tool, open_tickets],
llm=Settings.llm,
system_prompt="Use the tools. Cite the document name in each answer.",
)
async def main():
result = await agent.run("How many platform tickets are open, and how do we rotate keys?")
print(result)
asyncio.run(main())Agent ജോലിക്ക് tool calling ഉള്ള മോഡലുകൾ തിരഞ്ഞെടുക്കുക. ഈ മോഡലുകൾ മാത്രമുള്ള ഒരു fallback chain profile ഉണ്ടാക്കി, auto:<profile> മോഡൽ പേരായി ഉപയോഗിക്കുക.
| മോഡൽ | സൗജന്യമായി ലഭ്യം | കോൺടെക്സ്റ്റ് | സൗജന്യ പരിധികൾ (ഏറ്റവും മികച്ച ഓഫർ) | ടൂളുകൾ | ദൃശ്യ ശേഷി |
|---|---|---|---|---|---|
| GLM 5.3 | UnoRouter | 1M | 1 അഭ്യർഥന/മിനിറ്റ് 1 req/min per model | അതെ | ഇല്ല |
| GLM 5.3 Flash | NVIDIA NIM, UnoRouter | 1M | 40 അഭ്യർഥന/മിനിറ്റ് 40 RPM | അതെ | അതെ |
| Gemini 3.8 Flash | Google AI Studio | 1M | Recurring provider quota | അതെ | അതെ |
| Qwen3.8 Flash Next | AMD Radeon Cloud | 262K | Recurring daily account allowance | അതെ | ഇല്ല |
| Qwen3.8 Flash | ElectronHub | 1M | $0.25/week shared recurring credit | അതെ | അതെ |
| Gemini 3.7 Flash | Google AI Studio | 1M | 10 അഭ്യർഥന/മിനിറ്റ് 20 അഭ്യർഥന/ദിവസം 250,000 ടോക്കൺ/മിനിറ്റ് ~3M | അതെ | അതെ |
| GPT-5.6 Luna | ElectronHub | 1M | $0.25/week shared recurring credit | അതെ | അതെ |
| Dots3 Note Preview | Kilo Gateway, OpenRouter | 512K | 20 അഭ്യർഥന/മിനിറ്റ് 50 അഭ്യർഥന/ദിവസം 50 req/day account-wide (1,000 after a $10 purchase) | അതെ | അതെ |
| DeepSeek V4 Flash | AMD Radeon Cloud, BazaarLink, ElectronHub | 1M | 10 അഭ്യർഥന/മിനിറ്റ് 50 അഭ്യർഥന/ദിവസം Shared rate limit | അതെ | ഇല്ല |
| Qwen3.8 27B | ElectronHub, Groq, OVH AI Endpoints | 262K | 30 അഭ്യർഥന/മിനിറ്റ് 250 അഭ്യർഥന/ദിവസം 70,000 ടോക്കൺ/മിനിറ്റ് ~6M | അതെ | അതെ |
പൊരുത്തപ്പെടുന്ന 109 സൗജന്യ മോഡലുകളിൽ 10 എണ്ണം കാണിക്കുന്നു. എല്ലാ മോഡലുകളും കാണുക.
FreeLLMAPI കാറ്റലോഗിൽ നിന്നുള്ള തത്സമയ ഡാറ്റ (പതിപ്പ് 2026.11.19, 2026-11-19 ൽ പരിശോധിച്ചത്). സൗജന്യ പരിധികൾ പലപ്പോഴും മാറുന്നു. കാറ്റലോഗ് എല്ലാ ദിവസവും പരിശോധിക്കുന്നു.
Ingestion സൗജന്യ പരിധികൾക്കുള്ളിൽ നിർത്തുക
Ingestion കുറഞ്ഞ സമയത്തിനുള്ളിൽ നിരവധി embedding request-കൾ അയയ്ക്കുന്നു. സൗജന്യ embedding tier-കൾക്ക് കുറഞ്ഞ പരിധികളുണ്ട്. ഉദാഹരണത്തിന്, ചിലത് മിനിറ്റിൽ 10 request-കൾ അനുവദിക്കുന്നു, മറ്റ് ചിലത് കോളുകൾ മാസത്തിൽ എണ്ണുന്നു. ആരംഭിക്കുന്നതിന് മുൻപ് ആദ്യ ingestion ആസൂത്രണം ചെയ്യുക.
- വലിയ chunks ഉപയോഗിക്കുക. കുറച്ച് chunks എന്നാൽ കുറച്ച് vectors, കുറച്ച് request-കൾ. ഏകദേശം 1,024 ടോക്കണുകളുടെ chunk വലുപ്പം നല്ല തുടക്കമാണ്.
- Batches ഉപയോഗിക്കുക.
embed_batch_size16 അല്ലെങ്കിൽ അതിലധികമോ ആക്കുക. അപ്പോൾ ഒരു request-ൽ നിരവധി chunks ഉണ്ടാകും. - Index സേവ് ചെയ്യുക. ആദ്യ പ്രവർത്തനത്തിന് ശേഷം index സ്ഥിരമായി സൂക്ഷിക്കുക. ഒരേ ഫയലുകൾ വീണ്ടും embed ചെയ്യരുത്.
- Retries ഓണാക്കി വയ്ക്കുക.
OpenAILikeEmbeddingസ്ഥിരസ്ഥിതിയായി 10 തവണ വരെ വീണ്ടും ശ്രമിക്കുന്നു. നീണ്ട ingestion ജോലികൾക്ക് ഈ മൂല്യം നിലനിർത്തുക. - ഭാഗങ്ങളായി ingest ചെയ്യുക. ആയിരക്കണക്കിന് ഫയലുകൾക്ക്, ഒരു സമയം ഒരു folder ingest ചെയ്യുക.
Queries ingestion-നേക്കാൾ ചെലവ് കുറഞ്ഞതാണ്. ഓരോ query-യും ഒരു embedding request-ഉം ഒരു chat request-ഉം ഉപയോഗിക്കുന്നു. 1,024 ടോക്കണുകളുടെ നാല് chunks ഉള്ള ഒരു chat request ഏകദേശം 5,000 ടോക്കണുകൾ അയയ്ക്കുന്നു. കുറഞ്ഞ tokens-per-minute പരിധിയുള്ള സൗജന്യ tier-കൾ ഇത് നിരസിച്ചേക്കാം. അപ്പോൾ FreeLLMAPI അടുത്ത provider പരീക്ഷിക്കുന്നു.
പ്രശ്നപരിഹാരം
| പ്രശ്നം | കാരണം | പരിഹാരം |
|---|---|---|
Unknown model 'auto' | നിങ്ങൾ OpenAI class ഉപയോഗിച്ചു | OpenAILike ഉപയോഗിക്കുക |
Requests /v1/completions-ലേക്ക് പോകുന്നു | is_chat_model സജ്ജമാക്കിയിട്ടില്ല | is_chat_model=True സജ്ജമാക്കുക |
| Agent tools വിളിക്കുന്നില്ല | is_function_calling_model ഓഫ് ആണ്, അല്ലെങ്കിൽ മോഡലിന് tool calling ഇല്ല | അത് True ആക്കുക, tools profile ഉപയോഗിക്കുക |
| Ingestion സമയത്ത് error 429 | എല്ലാ provider-കളിലും embedding family പരിധിയിലാണ് | വലിയ batch-കൾ ഉപയോഗിക്കുക, Retry-After വരെ കാത്തിരുന്ന് വീണ്ടും പ്രവർത്തിപ്പിക്കുക |
| Embedding മോഡൽ മാറ്റിയ ശേഷം മോശം മറുപടികൾ | ഒരു index-ൽ രണ്ട് families-ൽ നിന്നുള്ള vectors | സേവ് ചെയ്ത index ഇല്ലാതാക്കി വീണ്ടും ഉണ്ടാക്കുക |
| Context length പിശക് | context_window മറുപടി നൽകിയ മോഡലിനേക്കാൾ വലുതാണ് | ചെറിയ മൂല്യം സജ്ജമാക്കുക, അല്ലെങ്കിൽ നീണ്ട context profile ഉപയോഗിക്കുക |
ഏത് provider ആണ് request-ന് മറുപടി നൽകിയതെന്ന് കാണാൻ FreeLLMAPI ഡാഷ്ബോർഡ് ഉപയോഗിക്കുക. Analytics പേജ് ഓരോ provider-ന്റെയും മോഡലിന്റെയും request-കൾ, latency, പിശകുകൾ കാണിക്കുന്നു. ഓരോ മറുപടിയിലും X-Routed-Via header ഉണ്ട്. Router provider മാറ്റിയെങ്കിൽ, X-Fallback-Trail header പരാജയപ്പെട്ട ഓരോ ശ്രമവും കാരണവും പേരുനൽകുന്നു.
പതിവ് ചോദ്യങ്ങൾ
സൗജന്യ LLM ഉപയോഗിച്ച് LlamaIndex ഉപയോഗിക്കാമോ?
ഉപയോഗിക്കാം. api_base OpenAI-compatible URL-ലേക്ക് സജ്ജമാക്കി OpenAILike ഉപയോഗിക്കുക. FreeLLMAPI നിരവധി സൗജന്യ provider tier-കൾക്ക് ഒരൊറ്റ URL നൽകുന്നു. ഓരോ tier-നും സ്വന്തം പരിധികളുണ്ട്.
LlamaIndex-ൽ OpenAI, OpenAILike എന്നിവ തമ്മിലുള്ള വ്യത്യാസം എന്താണ്?
OpenAI class മോഡൽ പേരുകൾ OpenAI മോഡലുകളുമായി പരിശോധിക്കുന്നു. OpenAILike ഏത് മോഡൽ പേരും സ്വീകരിക്കുന്നു. Context window, chat, function-calling flags എന്നിവ നിങ്ങൾ തന്നെ സജ്ജമാക്കുന്നു.
LlamaIndex-ന് ഏറ്റവും നല്ല സൗജന്യ embedding മോഡൽ ഏതാണ്?
നിങ്ങളുടെ ingestion-ന് മതിയായ സൗജന്യ request-കളുള്ള ഒരു family തിരഞ്ഞെടുത്ത് മുഴുവൻ index-നും അത് നിലനിർത്തുക. bge-m3 family പല provider-കളിൽ സൗജന്യമാണ്, അതിനാൽ failover അവയ്ക്കിടയിൽ നീങ്ങാം.
സൗജന്യ മോഡലുകളിൽ FunctionAgent പ്രവർത്തിക്കുമോ?
മോഡൽ tool calling പിന്തുണയ്ക്കുകയും നിങ്ങൾ is_function_calling_model=True സജ്ജമാക്കുകയും ചെയ്താൽ ഉവ്വ്. Tool-calling മോഡലുകൾ മാത്രമുള്ള ഒരു fallback chain profile ഉപയോഗിക്കുക.
LlamaIndex index ഉണ്ടാക്കുമ്പോൾ rate limit-കൾ എങ്ങനെ ഒഴിവാക്കാം?
വലിയ chunks ഉപയോഗിക്കുക, embed_batch_size 16 അല്ലെങ്കിൽ അതിലധികമോ ആക്കുക, index സ്ഥിരമായി സേവ് ചെയ്യുക, വലിയ folder-കൾ ഭാഗങ്ങളായി ingest ചെയ്യുക.
അനുബന്ധ ഗൈഡുകൾ
- RAG-നുള്ള സൗജന്യ LLM API
- സൗജന്യ embeddings API
- LangChain-നായി സൗജന്യ LLM API
- Python-ൽ സൗജന്യ LLM API
- 1 million token context ഉള്ള സൗജന്യ LLM API
ഉറവിടങ്ങൾ
- LlamaIndex: llama-index-llms-openai-like README (20 November 2026 ൽ പരിശോധിച്ചത്)
- LlamaIndex: llama-index-embeddings-openai-like source (20 November 2026 ൽ പരിശോധിച്ചത്)
- LlamaIndex: FunctionAgent (agent workflow) source (20 November 2026 ൽ പരിശോധിച്ചത്)
- FreeLLMAPI docs: REST API (embeddings families, routing strategies) (20 November 2026 ൽ പരിശോധിച്ചത്)