Literature Search Tutorial
Learn how to search and retrieve scientific literature using OHMind’s RAG (Retrieval-Augmented Generation) system.
Table of Contents
- Overview
- Prerequisites
- Part 1: Basic Searches
- Part 2: Research Synthesis
- Part 3: Design Guidance
- Part 4: Web Search Integration
- Expected Outputs
- Troubleshooting
- Next Steps
- See Also
Overview
Difficulty: 🟢 Beginner
Time: 15 minutes
Requirements: Qdrant configured (optional), Tavily API key (for web search)
In this tutorial, you will:
- Search the local literature database
- Synthesize information from multiple sources
- Get design recommendations based on literature
- Combine local and web search for comprehensive research
What is RAG in OHMind?
OHMind uses Retrieval-Augmented Generation (RAG) to enhance AI responses with relevant scientific literature:
- Vector database - Qdrant stores document embeddings
- Semantic search - Find relevant papers by meaning, not just keywords
- Context injection - Retrieved documents inform AI responses
- Citation tracking - Sources are provided with answers
Search Capabilities
| Source | Agent | Use Case |
|---|---|---|
| Local database | RAG Agent | Ingested papers, curated content |
| Web search | Web Search Agent | Recent publications, general info |
| Chemistry databases | Chemistry Agent | PubChem, molecular data |
Prerequisites
Local RAG (Optional but Recommended)
For local literature search, you need:
- Qdrant configured - Either local or server mode
- Documents ingested - Scientific papers in the database
# Check Qdrant configuration
echo $QDRANT_PATH # For local mode
# or
echo $QDRANT_URL # For server mode
Web Search
For web-based literature search:
# Check Tavily API key
echo $TAVILY_API_KEY
# Should show: tvly-...
Start the Interface
cd OHMind
./start_OHMind_cli.sh
Part 1: Basic Searches
Step 1.1: Simple Topic Search
Start with a basic literature search.
Prompt:
Search for literature on quaternary ammonium cations for
anion exchange membranes. Summarize the key findings.
Expected Output:
Literature Search Results:
Found 5 relevant documents:
1. "Alkaline Stability of Quaternary Ammonium Cations" (2022)
- Key finding: Piperidinium shows better stability than
benzyltrimethylammonium
- Degradation mechanism: SN2 attack on α-carbon
2. "Design Principles for Stable AEM Cations" (2023)
- Key finding: Steric protection improves stability
- Recommended: Bulky substituents near nitrogen
3. ...
Summary:
Quaternary ammonium cations are widely used in AEMs but face
alkaline degradation challenges. Recent research focuses on
steric protection and electronic effects to improve stability.
Step 1.2: Specific Property Search
Search for information about a specific property.
Prompt:
Find literature on the relationship between LUMO energy and
alkaline stability in AEM cations. What LUMO values are
associated with good stability?
Expected Output:
LUMO-Stability Relationship:
Key Findings from Literature:
1. Higher LUMO energy correlates with better stability
- LUMO > -2.0 eV: Generally stable
- LUMO < -3.0 eV: Prone to degradation
2. Computational studies show:
- LUMO localization on N indicates vulnerability
- Delocalized LUMO improves stability
3. Recommended design criteria:
- Target LUMO > -1.5 eV
- Avoid LUMO localization on cationic center
Sources:
- [1] J. Membr. Sci. 2022, 645, 120195
- [2] ACS Appl. Mater. Interfaces 2023, 15, 12345
Step 1.3: Structural Motif Search
Search for specific structural features.
Prompt:
Search for literature on spirocyclic cations for AEMs.
What are the advantages and reported performance?
Expected Output:
Spirocyclic Cations in AEMs:
Overview:
Spirocyclic cations feature two rings sharing a single atom,
providing unique steric and electronic properties.
Advantages:
1. Enhanced steric protection of nitrogen
2. Restricted conformational flexibility
3. Improved alkaline stability
Reported Performance:
- Conductivity: 40-80 mS/cm at 80°C
- Stability: >1000 h at 1M KOH, 80°C
- Water uptake: 30-50%
Key Examples:
- ASU (aza-spiro-undecane): Excellent stability
- Spirocyclic piperidinium: Good conductivity
Sources:
- [1] Nat. Energy 2021, 6, 1234
- [2] Angew. Chem. 2022, 134, e202201234
Part 2: Research Synthesis
Step 2.1: Compare Cation Types
Synthesize information comparing different cation families.
Prompt:
Compare the following cation types based on literature:
1. Piperidinium
2. Imidazolium
3. Quaternary ammonium (benzyltrimethylammonium)
Create a comparison table with stability, conductivity, and
synthesis difficulty.
Expected Output:
Cation Type Comparison (from Literature):
| Property | Piperidinium | Imidazolium | Benzyl-TMA |
|----------|--------------|-------------|------------|
| Alkaline Stability | ★★★★☆ | ★★★☆☆ | ★★☆☆☆ |
| Conductivity | ★★★☆☆ | ★★★★☆ | ★★★★☆ |
| Synthesis | ★★★☆☆ | ★★★★☆ | ★★★★★ |
| Cost | Medium | Medium | Low |
Key Insights:
Piperidinium:
- Best stability due to saturated ring
- Moderate conductivity
- Degradation via Hofmann elimination
Imidazolium:
- Good conductivity (aromatic delocalization)
- Moderate stability (C2 position vulnerable)
- Well-studied chemistry
Benzyl-TMA:
- Easiest synthesis
- Lowest stability (benzylic position)
- Good baseline for comparison
Recommendation:
For high-stability applications, piperidinium derivatives
are preferred. For high-conductivity needs, consider
imidazolium with C2 protection.
Step 2.2: Degradation Mechanisms
Understand degradation pathways from literature.
Prompt:
Summarize the main degradation mechanisms for quaternary
ammonium cations in alkaline conditions. Include:
1. Mechanism names
2. Structural features that promote each
3. Design strategies to prevent each
Expected Output:
Degradation Mechanisms in AEM Cations:
1. SN2 Nucleophilic Substitution
- Mechanism: OH⁻ attacks α-carbon, displaces amine
- Promotes: Accessible α-carbons, low steric hindrance
- Prevention: Bulky substituents, no β-hydrogens
2. Hofmann Elimination (E2)
- Mechanism: OH⁻ abstracts β-hydrogen, forms alkene
- Promotes: β-hydrogens, anti-periplanar geometry
- Prevention: No β-hydrogens, constrained geometry
3. Ylide Formation
- Mechanism: Deprotonation adjacent to N⁺
- Promotes: Acidic α-hydrogens
- Prevention: Electron-withdrawing groups
4. Ring-Opening (for cyclic cations)
- Mechanism: Nucleophilic attack opens ring
- Promotes: Ring strain, accessible carbons
- Prevention: Stable ring systems, steric protection
Design Strategies Summary:
- Use saturated rings (avoid Hofmann)
- Add steric bulk near nitrogen (block SN2)
- Avoid acidic hydrogens (prevent ylide)
- Consider spirocyclic structures (multiple protections)
Step 2.3: State-of-the-Art Review
Get an overview of current research directions.
Prompt:
What are the current state-of-the-art approaches for designing
stable AEM cations? Summarize recent advances (2022-2024) and
identify promising research directions.
Expected Output:
State-of-the-Art AEM Cation Design (2022-2024):
Recent Advances:
1. Multi-Cation Architectures
- Multiple cations per repeat unit
- Improved conductivity without sacrificing stability
- Example: Bis-piperidinium polymers
2. Cation-Backbone Integration
- Cation incorporated into main chain
- Reduced degradation pathways
- Example: Poly(aryl piperidinium)
3. Computational Screening
- ML-guided cation discovery
- High-throughput DFT screening
- Example: OHMind-type approaches
4. Novel Cation Families
- Phosphonium cations (P-based)
- Sulfonium cations (S-based)
- Metal-organic cations
Promising Directions:
- Machine learning for property prediction
- Automated synthesis and testing
- Multi-scale modeling (QM + MD)
- Bio-inspired designs
Key Metrics Achieved:
- Conductivity: >100 mS/cm at 80°C
- Stability: >2000 h at 1M NaOH, 80°C
- Durability: >1000 h fuel cell operation
Part 3: Design Guidance
Step 3.1: Literature-Based Design
Get design recommendations from literature.
Prompt:
Based on literature, propose 3 new cation designs for AEMs
that should have:
1. High alkaline stability (>1000 h at 1M KOH)
2. Good conductivity (>50 mS/cm)
3. Reasonable synthesis complexity
Explain the design rationale for each.
Expected Output:
Literature-Informed Cation Designs:
Design 1: N,N-diethyl-N-methylpiperidinium
SMILES: CC[N+]1(CC)CCCCC1
Rationale:
- Piperidinium core for stability
- Ethyl groups block SN2 attack
- No β-hydrogens on N-substituents
- Literature precedent: Similar structures show >1500 h stability
Design 2: 6-azaspiro[5.5]undecane-6-ium
SMILES: C[N+]12CCCCC1CCCC2
Rationale:
- Spirocyclic structure provides steric protection
- Constrained geometry prevents Hofmann elimination
- Literature: ASU derivatives show excellent stability
- Moderate synthesis (2-3 steps)
Design 3: 1,1-dimethyl-4-phenylpiperazinium
SMILES: C[N+]1(C)CCN(c2ccccc2)CC1
Rationale:
- Piperazine ring with phenyl protection
- Aromatic group provides electronic stabilization
- Literature: Phenyl-substituted cations show improved stability
- Easy synthesis from commercial precursors
Recommendation:
Start with Design 1 for best stability/synthesis balance.
Design 2 for maximum stability if synthesis is feasible.
Step 3.2: Validate Design Ideas
Check if a design idea has literature support.
Prompt:
I'm considering using a morpholinium cation for AEMs.
Search the literature for:
1. Has this been tried before?
2. What were the results?
3. Any concerns or limitations?
Expected Output:
Morpholinium Cations in AEMs:
Literature Status: Limited studies
Findings:
1. Previous Work:
- Few reports on morpholinium AEMs
- Mostly in ionic liquid studies
- Limited membrane applications
2. Reported Results:
- Moderate conductivity (~30-40 mS/cm)
- Stability concerns due to ether linkage
- Oxygen may be susceptible to degradation
3. Concerns:
- C-O bond may be vulnerable to base attack
- Ring opening possible under harsh conditions
- Less stable than piperidinium analogs
4. Potential Advantages:
- Good solubility
- Easy synthesis
- Lower cost
Recommendation:
Morpholinium is not ideal for high-stability AEMs due to
the ether linkage vulnerability. Consider piperidinium
(replace O with CH2) for better stability.
Part 4: Web Search Integration
Step 4.1: Recent Publications
Search for very recent work not in local database.
Prompt:
Search the web for the most recent publications (2024) on
AEM cation design. What new approaches are being explored?
Expected Output:
Recent AEM Publications (2024 Web Search):
1. "Machine Learning-Guided Discovery of Stable AEM Cations"
- Journal: Nature Communications, 2024
- Key: ML model predicts stability from structure
- URL: [link]
2. "Phosphonium-Based Anion Exchange Membranes"
- Journal: Joule, 2024
- Key: P-based cations show unique stability
- URL: [link]
3. "Integrated Computational-Experimental AEM Design"
- Journal: ACS Energy Letters, 2024
- Key: Combined DFT/MD/experiment workflow
- URL: [link]
Emerging Trends:
- AI/ML integration in design
- Alternative cation chemistries (P, S)
- Multi-scale modeling approaches
- Automated experimentation
Step 4.2: Specific Compound Search
Search for information about a specific compound.
Prompt:
Search for information about "poly(aryl piperidinium)" AEMs.
Find:
1. Who developed it?
2. What are the reported properties?
3. Is it commercially available?
Expected Output:
Poly(aryl piperidinium) AEMs:
Development:
- Pioneered by Yan group (University of Delaware)
- First reported: ~2019
- Commercialized by Ionomr Innovations
Reported Properties:
- Conductivity: 80-120 mS/cm at 80°C
- Stability: >2000 h at 1M NaOH, 80°C
- IEC: 2.0-2.5 meq/g
- Water uptake: 40-60%
Commercial Status:
- Available from Ionomr (Aemion+ series)
- Used in commercial electrolyzers
- Research samples available
Key Publications:
- Nat. Energy 2019, 4, 392
- J. Am. Chem. Soc. 2020, 142, 7753
Expected Outputs
Search Results Format
Literature searches return:
Search Results:
- Number of relevant documents
- Document summaries with key findings
- Source citations
- Synthesized answer
Citations Format:
- [1] Author, Journal Year, Volume, Page
- [2] DOI or URL for web sources
Quality Indicators
| Indicator | Good Search | Poor Search |
|---|---|---|
| Relevance | Direct answers | Tangential info |
| Sources | Multiple, recent | Few, outdated |
| Synthesis | Integrated summary | Disconnected facts |
| Citations | Specific references | Vague attribution |
Troubleshooting
Common Issues
| Issue | Cause | Solution |
|---|---|---|
| “No documents found” | Empty database | Ingest papers first |
| “Irrelevant results” | Poor query | Refine search terms |
| “Web search failed” | API key issue | Check TAVILY_API_KEY |
| “Outdated information” | Old database | Update with recent papers |
Improving Search Quality
My search for "cation stability" returned irrelevant results.
Try searching specifically for "quaternary ammonium alkaline
degradation mechanism" instead.
Ingesting New Papers
# Add papers to the database
python OHMind_agent/scripts/ingest_papers.py \
--input-dir /path/to/new/papers \
--collection ohmind_papers
Next Steps
After completing this tutorial:
- Design new cations - Use literature insights for HEM optimization
- Validate computationally - Run QM calculations on literature-suggested designs
- Compare predictions - Check if your results match literature
Suggested Follow-up Prompts
Based on the literature search, run HEM optimization for the
most promising cation type identified.
For the top candidate from literature, run QM calculations
to verify the predicted LUMO energy and stability.
See Also
- RAG Agent - Agent capabilities
- Web Search Agent - Web search features
- HEM Optimization - Apply literature insights
- Multi-Step Workflows - Complex research pipelines
| *Last updated: 2025-12-23 | OHMind v1.0.0* |