πͺRAG
Key Components
Implementation Details
Document Indexing
documents = SimpleDirectoryReader("data/rel18").load_data()
docs_str = []
for doc in documents:
docs_str.append(doc.text)
RAG = RAGPretrainedModel.from_pretrained("colbert-ir/colbertv2.0")
RAG.index(
collection=docs_str,
index_name="ITU RAG 150",
max_document_length=150,
split_documents=True,
)Abbreviation Handling
Answer Generation
Context Retrieval
Prompt Creation
Last updated