Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HazyResearch/minions
/ functions
Functions
1,660 in github.com/HazyResearch/minions
⨍
Functions
1,660
◇
Types & classes
282
↳
Endpoints
40
Function
colbert_rerank_chunks
Rerank chunks for each query using Liquid AI's ColBERT model. This is useful for reranking results from a first-stage retriever (lik
minions/utils/retrievers.py:1231
Method
collection_size
Return number of entries in current collection.
minions/utils/multimodal_retrievers.py:389
Method
collection_size
Return number of entries in current collection.
minions/utils/multimodal_retrievers.py:539
Method
complete
Text completion using the chat endpoint. Args: prompts: Single prompt or list of prompts **kwargs: A
minions/clients/distributed_inference.py:449
Method
complete
Generate completions for the given text prompts. Args: prompts: String or list of strings to generate completions for
minions/clients/transformers.py:801
Function
compute_transformer_flops
Compute FLOPs, MACs, and parameters for transformer models using the calflops package. Args: model_name (str): HuggingFace model
minions/utils/energy_tracking.py:502
Method
constructor
()
apps/minions-docker/web-minions/main.js:3
Method
constructor
()
apps/minions-docker/web/main.js:3
Function
count_lines
(file_path)
tests/test_minion_wtools.py:304
Method
create_file_search_store
Create a new File Search store for RAG. Args: display_name: Display name for the file search store
minions/clients/gemini.py:802
Function
create_method_comparison_chart
Create a comparison chart for the methods.
apps/minions-tools/utils.py:201
Method
deep_reasoning
Use Exa's deep-reasoning for synthesized answers with grounding citations. Args: query: The research query. output_sc
minions/clients/exa.py:340
Method
delete_collection
Delete the current collection from ChromaDB. :returns Whether the collection was successfully deleted
minions/utils/multimodal_retrievers.py:309
Method
delete_file
Delete an uploaded file. Example: client.delete_file("file_abc123")
minions/clients/grok.py:288
Method
delete_file_search_store
Delete a File Search store. Args: store_name: Name of the store to delete (format: fileSearchStores/xxxxx)
minions/clients/gemini.py:857
Function
divide
Divide a by b and return the result. Returns error if b is zero.
tests/mcp_server_example/calculator_mcp_server_example.py:31
Method
embed
Generate embeddings using Vercel AI Gateway. Args: content: Text content to embed (single string or list of strings).
minions/clients/vercel_gateway.py:139
Method
embed
Generate embeddings using the Mistral embeddings API. Args: inputs: List of strings to embed **kwargs: Addit
minions/clients/mistral.py:229
Method
embed
Generate embeddings using Gemini's embedding API. See: https://ai.google.dev/gemini-api/docs/embeddings
minions/clients/gemini.py:1249
Method
embed
Embedding not supported by Distributed Inference API.
minions/clients/distributed_inference.py:445
Method
embed
Generate embeddings using the OpenRouter API.
minions/clients/openrouter.py:300
Method
embed
Generate embeddings using the Perplexity Embeddings API. Args: content: Text or list of texts to embed. model: Embedd
minions/clients/perplexity.py:287
Method
embed
Embed content using model (if supported).
minions/clients/ollama.py:721
Method
embed
Generate embeddings using SambaNova's embedding API. Args: content: Text content to embed (single string or list
minions/clients/sambanova.py:107
Method
embed
Generate embeddings using the Osaurus server. Note: Embedding support depends on the specific model loaded in Osaurus.
minions/clients/osaurus.py:293
Method
embed_contextualized
Generate contextualized embeddings for document chunks. Args: documents: Nested list where each inner list is ordered chunks from
minions/clients/perplexity.py:315
Method
embedding_retriever_with_model
(*args, **kwargs)
minions/minions.py:537
Method
embeddings
Generate embeddings for the given input text. Args: input_text: The text to generate embeddings for
minions/clients/docker_model_runner.py:220
Method
encode
Encode texts to create embeddings.
minions/utils/retrievers.py:85
Method
encode
Encode texts to create embeddings using Gemini model. Args: texts: Single text or list of texts to encode ta
minions/utils/retrievers.py:295
Method
encode
Encode texts to create embeddings using OpenRouter model. Args: texts: Single text or list of texts to encode
minions/utils/retrievers.py:475
Method
encode
Encode texts to create embeddings using Ollama model. Args: texts: Single text or list of texts to encode **
minions/utils/retrievers.py:573
Method
encode
Encode texts to create embeddings using Mistral model. Args: texts: Single text or list of texts to encode *
minions/utils/retrievers.py:824
Method
encode
Encode texts to create embeddings using Modular MAX Serve. Args: texts: Single text or list of texts to encode
minions/utils/retrievers.py:953
Method
encode_by_name
Encode texts using model by name (for backward compatibility)
minions/utils/retrievers.py:131
Method
encode_by_name
Encode texts using model by name (for backward compatibility)
minions/utils/retrievers.py:397
Method
encode_by_name
Encode texts using model by name (for backward compatibility)
minions/utils/retrievers.py:533
Method
encode_by_name
Encode texts using model by name (for backward compatibility)
minions/utils/retrievers.py:632
Method
encode_by_name
Encode texts using model by name (for backward compatibility)
minions/utils/retrievers.py:762
Method
encode_by_name
Encode texts using model by name (for backward compatibility)
minions/utils/retrievers.py:891
Method
encode_by_name
Encode texts using model by name (for backward compatibility)
minions/utils/retrievers.py:1011
Function
encrypt_and_sign_parallel
Encrypt and sign a message using sequential processing. This function has the same API as encrypt_and_sign but processes large messages
secure/utils/crypto_utils.py:800
Method
ensure_metadata
Ensure metadata exists and has skill_id.
apps/minions-a2a/a2a_minions/models.py:118
Method
error_generator
()
apps/minions-a2a/a2a_minions/server.py:820
Method
event_generator
Generate SSE events.
apps/minions-a2a/a2a_minions/server.py:849
Function
example_github
()
tests/test_minion_mcp.py:20
Function
example_github_read_files
()
tests/test_minion_mcp.py:35
Function
example_local
()
tests/test_minion_mcp.py:50
Function
example_mcp_unnecessary
()
tests/test_minion_mcp.py:65
Method
execute_tool
Execute an MCP tool synchronously
minions/minions_mcp.py:237
Function
execute_tool_calls
Execute tool calls and return the results. Args: tool_calls: List of tool call objects from the LLM Returns: List of diction
minions/minion_wtools.py:466
Function
export_results_to_csv
Export comparison results to a CSV file.
apps/minions-tools/utils.py:165
Function
extract_entities_from_text
Extract specific entity types from text and return as a simple list. Args: text: Input text to process entity_types: Lis
minions/utils/doc_processing.py:543
Method
extract_job_output
(response: str)
minions/minions.py:681
Function
extract_url_content
Extract content from a single URL and return as a dictionary. This is a convenience wrapper around parallel_extract for single URL extra
minions/utils/parallel_search_util.py:172
Method
filter_fn
(job: Job)
minions/minions.py:753
Function
find_pattern
(file_path, pattern)
tests/test_minion_wtools.py:311
Method
flops_per_tok_T
(self)
minions/utils/inference_estimator.py:197
Function
format_response_for_display
Format response text for display in Streamlit.
apps/minions-tools/utils.py:24
Function
format_story_for_display
Format story data for display in the UI. Args: story_data: Story data dictionary Returns: Formatted story s
apps/minions-story-teller/utils.py:280
Function
format_usage
(usage, model_name)
minions_cli.py:159
Method
from_dict
Create a ConversationHistory from a dictionary.
minions/utils/conversation_history.py:167
Method
generate_audio
Generate audio from text and return the path to the audio file.
minions/utils/voice_generator.py:133
Method
generate_demo_story
Generate a demo story without requiring API keys
apps/minions-story-teller/app.py:630
Method
generate_diff
Generate diffs between workspace states. Args: before_state: Previous workspace state after_state: C
minions/utils/workspace.py:278
Method
generate_image
Generate images using the MLX Omni Server. Args: prompt: The prompt to generate images from n: Number of ima
minions/clients/mlx_clients.py:542
Method
generate_image
Generate images using the MLX Omni Server. Args: prompt: The prompt to generate images from n: Number of ima
secure/utils/clients/mlx_omni.py:158
Method
get_agent_card
Get the public agent card.
apps/minions-a2a/a2a_minions/server.py:626
Method
get_attached_files
Get the list of file IDs currently attached to chat. Returns: List of file IDs
minions/clients/grok.py:341
Method
get_available_models
Get list of available Gemini embedding models.
minions/utils/retrievers.py:410
Method
get_available_models
Get list of available Mistral embedding models.
minions/utils/retrievers.py:897
Method
get_available_models
Get list of commonly used embedding models with Modular MAX.
minions/utils/retrievers.py:1017
Method
get_available_models
Get a list of available models through Cloudflare AI Gateway. Note: Since Cloudflare AI Gateway proxies to multiple provider
minions/clients/cloudflare.py:132
Method
get_available_models
Get a list of available Gemini models Returns: List[str]: List of model names
minions/clients/gemini.py:146
Method
get_available_models
Get a list of available models from Parallel AI. Returns: List[str]: List of model names available through Parallel AI
minions/clients/parallel.py:82
Method
get_available_models
Get list of available models from OpenRouter.
minions/clients/openrouter.py:324
Method
get_available_models
Get a list of available models from Novita AI. Returns: List[str]: List of model names available through Novita
minions/clients/novita.py:144
Method
get_available_models
Get a list of commonly supported models for LMCache. Returns: List[str]: List of model names that work well with
minions/clients/lmcache.py:280
Method
get_available_models
Get a list of available models from Perplexity AI. Returns: List[str]: List of model names available through Per
minions/clients/perplexity.py:352
Method
get_available_models
Get a list of available Grok models from the X.AI API. Returns: List[str]: List of model names available through X.AI
minions/clients/grok.py:111
Method
get_available_models
Get a list of available MLX models from the server. Returns: List[str]: List of model names
minions/clients/mlx_clients.py:467
Method
get_available_models
Get a list of available Ollama models Returns: List[str]: List of model names
minions/clients/ollama.py:86
Method
get_available_models
Get a list of available models from Tencent Hunyuan. Returns: List[str]: List of model names available through H
minions/clients/tencent.py:124
Method
get_available_models
Get a list of available Osaurus models. Note: This is a static method that returns common Osaurus model names. For d
minions/clients/osaurus.py:91
Method
get_available_models
Get a list of available MLX models from the server. Returns: List[str]: List of model names
secure/utils/clients/mlx_omni.py:86
Method
get_available_models
Get a list of available Gemini models Returns: List[str]: List of model names
secure/utils/clients/gemini.py:54
Method
get_available_models
Get a list of available Ollama models Returns: List[str]: List of model names
secure/utils/clients/ollama.py:50
Method
get_chat_completion
Low-level method to get the raw chat completion response. Args: messages: List of message dictionaries with 'rol
minions/clients/sarvam.py:121
Function
get_chat_system_prompt
Extract the system prompt from the character exposé for chat.
apps/minions-character-chat/prompts.py:38
Method
get_citations
Get citations from the last chat response. Returns: List of citation objects from the last response, or None if
minions/clients/exa.py:260
Function
get_config
Get current configuration.
apps/minions-docker/minion_http_server.py:225
Method
get_conversation_id
(self)
minions/clients/openai.py:162
Method
get_credits
Check AI Gateway credit balance and usage information. Reference: https://vercel.com/docs/ai-gateway/usage#credits
minions/clients/vercel_gateway.py:221
Method
get_extended_agent_card
Get the extended agent card with authentication.
apps/minions-a2a/tests/integration/run_integration_tests.py:68
Method
get_extended_card
Get the extended agent card for authenticated users.
apps/minions-a2a/a2a_minions/server.py:632
Method
get_file
Get information about a specific file. Example: file_info = client.get_file("file_abc123") print(f"Filename:
minions/clients/grok.py:264
Method
get_generation
Retrieve detailed information about a specific generation by its ID. This endpoint allows you to look up usage data, costs, and metadata for
minions/clients/vercel_gateway.py:240
Method
get_grounding_metadata
Get grounding metadata from the last response. This includes citations from File Search and other grounding sources.
minions/clients/gemini.py:792
Method
get_health
Check the health of the server.
minions/clients/lemonade.py:278
Method
get_interaction_usage_details
Get detailed usage information from the last Interactions API call. This provides more detailed usage information than the s
minions/clients/gemini.py:1218
← previous
next →
1,001–1,100 of 1,660, ranked by callers