samadariyan/ollama icon
public
Published on 8/12/2025
Ollama

Local Ollama

Rules
Prompts
Models
Context
ollama qwen2.5-coder 7b model icon

qwen2.5-coder 7b

ollama

ollama qwen2.5-coder 14b model icon

qwen2.5-coder 14b

ollama

ollama qwen2.5-coder 1.5b model icon

qwen2.5-coder 1.5b

ollama

ollama deepseek-r1 8b model icon

deepseek-r1 8b

ollama

ollama nomic-embed-text latest model icon

nomic-embed-text latest

ollama

ollama codegemma 7b model icon

codegemma 7b

ollama

ollama granite-embedding 278m model icon

granite-embedding 278m

ollama

ollama granite-embedding 30m model icon

granite-embedding 30m

ollama

ollama gpt-oss 20b model icon

gpt-oss 20b

ollama

together Mxbai Rerank Large V2 model icon

Mxbai Rerank Large V2

together

## Project Structure - Organize code with `lib.rs`, `main.rs`, and clear module hierarchy. - Use `src/bin/` for multiple binaries; avoid cramming everything into `main.rs`.
## Code Quality - Enforce use of `clippy` and `rustfmt` before committing. - Favor `Result<T, E>` over panics in libraries. - Document public functions, structs, and modules with `///` doc comments.
## Dependency Management - Keep `Cargo.toml` clean; avoid unused or overly permissive dependencies. - Use specific versions (no `*`) and prefer crates with good maintenance.
## Error Handling - Prefer typed errors (custom `Error` enums) over `anyhow` in libraries. - Use `thiserror` or `eyre` for ergonomic error management when appropriate. - Avoid using `.unwrap()` or `.expect()` outside of tests or prototyping.
## Testing & CI - Write unit tests alongside code; use `#[cfg(test)]` blocks. - Favor `assert_eq!`, `assert_matches!`, and structured error testing. - Include basic CI tasks: `cargo check`, `cargo test`, `cargo clippy`.
## Unsafe & Performance - Avoid `unsafe` unless there's no alternative and document its usage explicitly. - Profile performance before optimizing; use `cargo bench`, `perf`, or `criterion`.
## AI Response Formatting - If asked for Rust code, return a complete, compile-ready example by default. - Avoid unnecessary explanation unless explicitly requested. - Clearly mark testable vs. illustrative code snippets.
Continuehttps://docs.continue.dev
Next.jshttps://nextjs.org/docs/app
Rust docshttps://doc.rust-lang.org/book/
Reacthttps://react.dev/reference/
MDN JavaScript Documentationhttps://developer.mozilla.org/en-US/docs/Web/JavaScript

Prompts

Learn more
Next.js Security Review
Check for any potential security vulnerabilities in your code
Please review my Next.js code with a focus on security issues.

Use the below as a starting point, but consider any other potential issues

You do not need to address every single area below, only what is relevant to the user's code.

1. Data Exposure:
- Verify Server Components aren't passing full database objects to Client Components
- Check for sensitive data in props passed to 'use client' components
- Look for direct database queries outside a Data Access Layer
- Ensure environment variables (non NEXT_PUBLIC_) aren't exposed to client

2. Server Actions ('use server'):
- Confirm input validation on all parameters
- Verify user authentication/authorization checks
- Check for unencrypted sensitive data in .bind() calls

3. Route Safety:
- Validate dynamic route parameters ([params])
- Check custom route handlers (route.ts) for proper CSRF protection
- Review middleware.ts for security bypass possibilities

4. Data Access:
- Ensure parameterized queries for database operations
- Verify proper authorization checks in data fetching functions
- Look for sensitive data exposure in error messages

Key files to focus on: files with 'use client', 'use server', route.ts, middleware.ts, and data access functions.
Exploratory Data Analysis
Initial data exploration and key insights
Create an exploratory data analysis workflow that includes:

Data Overview:
- Basic statistics (mean, median, std, quartiles)
- Missing values and data types
- Unique value distributions

Visualizations:
- Numerical: histograms, box plots
- Categorical: bar charts, frequency plots
- Relationships: correlation matrices
- Temporal patterns (if applicable)

Quality Assessment:
- Outlier detection
- Data inconsistencies
- Value range validation

Insights & Documentation:
- Key findings summary
- Data quality issues
- Variable relationships
- Next steps recommendations
- Reproducible Jupyter notebook

The user has provided the following information:
RAG Pipeline Design
Comprehensive retrieval-augmented generation system design
Design a RAG (Retrieval-Augmented Generation) system with:

Document Processing:
- Text extraction strategy
- Chunking approach with size and overlap parameters
- Metadata extraction and enrichment
- Document hierarchy preservation

Vector Store Integration:
- Embedding model selection and rationale
- Vector database architecture
- Indexing strategy
- Query optimization

Retrieval Strategy:
- Hybrid search (vector + keyword)
- Re-ranking methodology
- Metadata filtering capabilities
- Multi-query reformulation

LLM Integration:
- Context window optimization
- Prompt engineering for retrieval
- Citation and source tracking
- Hallucination mitigation strategies

Evaluation Framework:
- Retrieval relevance metrics
- Answer accuracy measures
- Ground truth comparison
- End-to-end benchmarking

Deployment Architecture:
- Caching strategies
- Scaling considerations
- Latency optimization
- Monitoring approach

The user's knowledge base has the following characteristics:
Client component
Create a client component.
Create a client component with the following functionality. If writing this as a server component is not possible, explain why.
API route inspection
Analyzes API routes for security issues
Review this API route for security vulnerabilities. Ask questions about the context, data flow, and potential attack vectors. Be thorough in your investigation.
Data Pipeline Development
Create robust and scalable data processing pipelines
Generate a data processing pipeline with these requirements:

Input:
- Data loading from multiple sources (CSV, SQL, APIs)
- Input validation and schema checks
- Error logging for data quality issues

Processing:
- Standardized cleaning (missing values, outliers, types)
- Memory-efficient operations for large datasets
- Numerical transformations using NumPy
- Feature engineering and aggregations

Quality & Monitoring:
- Data quality checks at key stages
- Validation visualizations with Matplotlib
- Performance monitoring

Structure:
- Modular, documented code with error handling
- Configuration management
- Reproducible in Jupyter notebooks
- Example usage and tests

The user has provided the following information:
Next.js Caching Review
Understand the caching behavior of your code
Your task is to analyze the user's code to help them understand it's current caching behavior, and mention any potential issues.
Be concise, only mentioning what is necessary.
Use the following as a starting point for your review:

1. Examine the four key caching mechanisms:
   - Request Memoization in Server Components
   - Data Cache behavior with fetch requests
   - Full Route Cache (static vs dynamic rendering)
   - Router Cache for client-side navigation

2. Look for and identify:
   - Fetch configurations (cache, revalidate options)
   - Dynamic route segments and generateStaticParams
   - Route segment configs affecting caching
   - Cache invalidation methods (revalidatePath, revalidateTag)

3. Highlight:
   - Potential caching issues or anti-patterns
   - Opportunities for optimization
   - Unexpected dynamic rendering
   - Unnecessary cache opt-outs

4. Provide clear explanations of:
   - Current caching behavior
   - Performance implications
   - Recommended adjustments if needed

Lastly, point them to the following link to learn more: https://nextjs.org/docs/app/building-your-application/caching

Context

Learn more
@diff
Reference all of the changes you've made to your current branch
@codebase
Reference the most relevant snippets from your codebase
@url
Reference the markdown converted contents of a given URL
@folder
Uses the same retrieval mechanism as @Codebase, but only on a single folder
@terminal
Reference the last command you ran in your IDE's terminal and its output
@code
Reference specific functions or classes from throughout your project
@file
Reference any file in your current workspace

No Data configured

MCP Servers

Learn more

Filesystem

npx -y @modelcontextprotocol/server-filesystem ${{ secrets.samadariyan/ollama/samadariyan/filesystem-mcp/PATH }}

GitHub

npx -y @modelcontextprotocol/server-github

Playwright

npx -y @executeautomation/playwright-mcp-server