MCPcopy Index your code

hub / github.com/adithya-s-k/VARAG / functions

Functions240 in github.com/adithya-s-k/VARAG

↓ 1 callersMethodpil_to_base64
(self, img: Image.Image)
varag/rag/_colpaliRAG.py:179
↓ 1 callersMethodpil_to_base64
(self, img: Image.Image)
varag/rag/_hybridColpaliRAG.py:176
↓ 1 callersMethodpil_to_bytes
(self, img: Image.Image)
varag/rag/_visionRAG.py:89
↓ 1 callersFunctionprepare_data
(chunks, embeddings)
examples/base_implementation/text_embed.py:163
↓ 1 callersFunctionprocess_file
(file)
archives/app1.py:50
↓ 1 callersFunctionprocess_patch_embeddings
(x)
examples/base_implementation/hybrid_colpali_embed.py:324
↓ 1 callersFunctionprocess_patch_embeddings
(x)
examples/base_implementation/colpali_embed.py:293
↓ 1 callersMethodprocess_patch_embeddings
(self, x)
varag/rag/_colpaliRAG.py:339
↓ 1 callersMethodprocess_patch_embeddings
(self, x)
varag/rag/_hybridColpaliRAG.py:341
↓ 1 callersMethodquery
Query the vision model. Args: query: The query text images: Single image or list of images (paths or
varag/vlms/provider/litellm.py:122
↓ 1 callersFunctionretrieve_data
(query, top_k, sequential=False)
demo.py:169
↓ 1 callersFunctionretrieve_data
(query, top_k, sequential=False)
examples/inference_colpali/demo_with_heatmaps.py:197
↓ 1 callersFunctionretrieve_data
Retrieve from all 4 RAG systems
examples/inference_colpali/modal_demo_heatmaps_comparing_colpali_models.py:271
↓ 1 callersFunctionsave_image_temp
(image)
examples/base_implementation/colpali_simple.py:28
↓ 1 callersFunctionsearch
( query: str, table_name: str, model, processor, db_path: str = "lancedb", top_k: int
examples/base_implementation/hybrid_colpali_embed.py:269
↓ 1 callersFunctionsearch
( query: str, table_name: str, model, processor, db_path: str = "lancedb", top_k: int
examples/base_implementation/colpali_embed.py:251
↓ 1 callersFunctionsearch_images
(query: str)
examples/base_implementation/jina_clip_embed.py:117
↓ 1 callersFunctionsearch_images
(query: str)
examples/base_implementation/clip_embed.py:109
↓ 1 callersFunctionsearch_pdf
(query)
examples/base_implementation/colpali_simple.py:48
↓ 1 callersFunctionset_apikey
()
archives/app1.py:33
↓ 1 callersMethodsplit_text
(self, text: str)
examples/base_implementation/text_embed.py:141
Method__call__
(self, image: Image.Image, query: str)
varag/vlms/base.py:8
Method__call__
Shorthand for query(). Args: images: Single image or list of images (paths or PIL Images) query: The
varag/vlms/provider/litellm.py:166
Method__call__
(self, image: Union[str, Image.Image], query: str)
varag/vlms/provider/openai.py:88
Method__call__
(self, image: Union[str, Image.Image], query: str)
varag/llms/provider/openai.py:87
Method__getitem__
(self, idx: int)
varag/rag/_colpaliRAG.py:34
Method__getitem__
(self, idx: int)
varag/rag/_hybridColpaliRAG.py:35
Method__getitem__
(self, idx: int)
examples/base_implementation/hybrid_colpali_embed.py:48
Method__getitem__
(self, idx: int)
examples/base_implementation/colpali_embed.py:43
Method__init__
Initialize the similarity mapper. Args: model: ColPali model instance processor: ColPali processor i
varag/utils.py:53
Method__init__
Initialize the VLM wrapper. Args: model: The model identifier (e.g., "gpt-4o", "meta-llama/llama-4-scout-17b-16e
varag/vlms/provider/litellm.py:16
Method__init__
( self, api_key: Optional[str] = None, base_url: Optional[str] = None, model:
varag/vlms/provider/openai.py:27
Method__init__
Initialize the LLM wrapper. Args: model: The model identifier (e.g., "gpt-4", "claude-3-opus-20240229")
varag/llms/provider/litellm.py:18
Method__init__
( self, api_key: Optional[str] = None, base_url: Optional[str] = None, model:
varag/llms/provider/openai.py:27
Method__init__
( self, text_embedding_model: SentenceTransformer, db: Union[lancedb.connect, None] =
varag/rag/_simpleRAG.py:28
Method__init__
(self, elements: List[T])
varag/rag/_colpaliRAG.py:28
Method__init__
( self, colpali_model: Optional[ColPali] = None, colpali_processor: Optional[ColPaliPr
varag/rag/_colpaliRAG.py:39
Method__init__
(self, elements: List[T])
varag/rag/_hybridColpaliRAG.py:29
Method__init__
( self, image_embedding_model: SentenceTransformer, colpali_model: Optional[ColPali] =
varag/rag/_hybridColpaliRAG.py:40
Method__init__
( self, image_embedding_model: SentenceTransformer, db: Union[lancedb.connect, None] =
varag/rag/_visionRAG.py:19
Method__init__
( self, chunk_size: int = 1000, chunk_overlap: int = 200, length_function: Cal
varag/chunking/__init__.py:13
Method__init__
( self, chunk_size: int = 1000, chunk_overlap: int = 200, length_function: Cal
varag/chunking/__init__.py:35
Method__init__
( self, chunk_size: int = 1000, chunk_overlap: int = 200, min_sentences_per_ch
varag/chunking/__init__.py:57
Method__init__
(self, elements: List[T])
examples/base_implementation/hybrid_colpali_embed.py:42
Method__init__
(self, chunk_size: int = 100, chunk_overlap: int = 0)
examples/base_implementation/text_embed.py:137
Method__init__
(self, elements: List[T])
examples/base_implementation/colpali_embed.py:37
Method__init__
(self, model, processor, device=None)
examples/inference_colpali/modal_demo_heatmaps_comparing_colpali_models.py:496
Method__len__
(self)
varag/rag/_colpaliRAG.py:31
Method__len__
(self)
varag/rag/_hybridColpaliRAG.py:32
Method__len__
(self)
examples/base_implementation/hybrid_colpali_embed.py:45
Method__len__
(self)
examples/base_implementation/colpali_embed.py:40
Method_encode_image
(self, image: Image.Image)
varag/vlms/base.py:11
Method_merge_splits
(self, splits: List[str], separator: str)
examples/base_implementation/text_embed.py:100
Functionadd_text
(history, text)
archives/app1.py:43
Methodadd_to_index
( self, path: Union[str, List[str]], recursive: bool = False, chunking_strateg
varag/rag/_simpleRAG.py:380
Methodadd_to_index
( self, new_data_path: Union[str, List[str]], recursive: bool = False, metadat
varag/rag/_visionRAG.py:218
Functionanswer_question
(question)
examples/base_implementation/text_embed.py:203
Functionbot
(history, pdf_file, max_new_tokens)
examples/base_implementation/colpali_simple.py:182
Functionchange_table
(simple_table, vision_table, colpali_table, hybrid_table)
demo.py:293
Functionchange_table
(simple_table, vision_table, colpali_table, hybrid_table)
examples/inference_colpali/demo_with_heatmaps.py:321
Functionchange_table
(simple_table, vision_table, colpali_table, hybrid_table)
examples/inference_colpali/modal_demo_heatmaps_comparing_colpali_models.py:1077
Methodchange_table
(self, new_table_name: str)
varag/rag/_colpaliRAG.py:112
Methodchange_table
(self, new_table_name: str)
varag/rag/_hybridColpaliRAG.py:109
Methodchange_table
(self, new_table_name: str)
varag/rag/_visionRAG.py:59
Methodchunk
(self, text: str)
varag/chunking/__init__.py:23
Methodchunk
(self, text: str)
varag/chunking/__init__.py:45
Methodchunk
(self, text: str)
varag/chunking/__init__.py:69
Functioncomparision_demo
()
examples/inference_colpali/modal_demo_heatmaps_comparing_colpali_models.py:62
Methodcreate_aggregated_heatmap_visualization
Create visualization of aggregated heatmap.
examples/inference_colpali/modal_demo_heatmaps_comparing_colpali_models.py:566
Methodevaluate_generation
Placeholder for future implementation of generation evaluation.
varag/rag/_simpleRAG.py:373
Methodevaluate_retrieval
Evaluate retrieval performance using the generated evaluation dataset. Args: eval_dataset: List of evaluation sa
varag/rag/_simpleRAG.py:298
Methodflatten_and_zero_pad
Flattens a PyTorch tensor and zero-pads it to a desired length. Args: tensor: The input PyTorch tensor. desired_lengt
varag/rag/_colpaliRAG.py:291
Methodflatten_and_zero_pad
Flattens a PyTorch tensor and zero-pads it to a desired length. Args: tensor: The input PyTorch tensor. desired_lengt
varag/rag/_hybridColpaliRAG.py:289
Methodgenerate_eval_dataset
Generate an evaluation dataset by sampling chunks and creating QA pairs. Args: num_samples: Number of samples to
varag/rag/_simpleRAG.py:225
Functiongenerate_response
(history, query, btn)
archives/app1.py:68
Functiongenerate_response
(query: str)
examples/base_implementation/jina_clip_embed.py:132
Functiongenerate_response
(query: str)
examples/base_implementation/clip_embed.py:124
Functiongenerate_similarity_maps_for_images
Generate similarity maps for all retrieved ColPali images
examples/inference_colpali/demo_with_heatmaps.py:511
Functionhandle_model_comparison
(retrieved_results, current_query)
examples/inference_colpali/modal_demo_heatmaps_comparing_colpali_models.py:1084
Methodindex
( self, data_path: Union[str, List[str]], overwrite: bool = False, recursive:
varag/rag/_colpaliRAG.py:236
Methodindex
( self, data_path: Union[str, List[str]], overwrite: bool = False, recursive:
varag/rag/_hybridColpaliRAG.py:233
Functioningest_data
(pdf_files, use_ocr, chunk_size, progress=gr.Progress())
demo.py:80
Functioningest_data
(pdf_files, use_ocr, chunk_size, progress=gr.Progress())
examples/inference_colpali/demo_with_heatmaps.py:108
Functioningest_data
Ingest PDFs into all 4 RAG systems
examples/inference_colpali/modal_demo_heatmaps_comparing_colpali_models.py:191
Functioningest_documents
(files, chunk_size, use_ocr)
examples/textDemo.py:32
Functioningest_pdf
(pdf_files, table_name, recursive, verbose)
examples/visionDemo.py:27
Functioningest_pdf
(pdf_file)
examples/base_implementation/hybrid_colpali_embed.py:360
Functioningest_pdf
(pdf_file)
examples/base_implementation/jina_clip_embed.py:80
Functioningest_pdf
(pdf_file)
examples/base_implementation/colpali_embed.py:329
Functioningest_pdf
(pdf_file)
examples/base_implementation/clip_embed.py:76
Functioningest_pdf
(file)
examples/base_implementation/colpali_simple.py:34
Functioningest_pdfs
(pdf_files, table_name, recursive, verbose)
examples/hybridColpaliDemo.py:39
Functioningest_pdfs
(pdf_files, table_name, recursive, verbose)
examples/colpaliDemo.py:32
Methodis_vision_model
Check if the current model supports vision inputs.
varag/llms/provider/litellm.py:184
Methodpil_to_base64
Convert PIL Image to base64 string
varag/utils.py:70
Functionpil_to_bytes
(img)
examples/base_implementation/jina_clip_embed.py:63
Functionpil_to_bytes
(img)
examples/base_implementation/clip_embed.py:63
Methodpil_to_bytes
(self, img: Image.Image)
varag/rag/_colpaliRAG.py:142
Methodpil_to_bytes
(self, img: Image.Image)
varag/rag/_hybridColpaliRAG.py:139
Functionprocess_pdf
(pdf_file, use_docling)
examples/base_implementation/text_embed.py:189
← previousnext →101–200 of 240, ranked by callers