Difference between revisions of "LLM-based Chat Assistant"

From OSGeo
Jump to navigation Jump to search
Line 22: Line 22:
  
 
Ask a question, prefixing your question with <code>!oc</code> or <code>bot</code> or mentioning <code>@llm-assitant:matrix.org</code>;
 
Ask a question, prefixing your question with <code>!oc</code> or <code>bot</code> or mentioning <code>@llm-assitant:matrix.org</code>;
the bot will respond, possibly using "tools", when it does, it prints the name of the tool too, among these:
+
the bot will respond, possibly local OSGeo services. Tool calls may be visible in chat logs using the pattern:
 
 
* <code>[osgeo-knowledge_search_content]</code> -- TODO link to the corresponding service
 
* <code>[osgeo-knowledge_search_wiki]</code> -- TODO link to the corresponding service
 
 
 
 
 
... lorenzo ...
 
 
 
'''AI chat / MCP integration:'''
 
 
 
The chat assistant uses MCP servers to query local OSGeo services. Tool calls may be visible in chat logs using the pattern:
 
  
 
<pre>
 
<pre>

Revision as of 09:13, 5 June 2026

An LLM-based chat assistant bot available in the OSGeo Matrix space.

Access

The bot is available in the Matrix room #lounge:osgeo.org. Its Matrix identifier is @llm-assitant:matrix.org. The bot responds when mentioned (@llm-assitant:matrix.org) or when a line starts with !oc or bot.

Administration

TBD

Technical Details

Usage

Ask a question, prefixing your question with !oc or bot or mentioning @llm-assitant:matrix.org; the bot will respond, possibly local OSGeo services. Tool calls may be visible in chat logs using the pattern:

> query=spam, limit=10 [osgeo-knowledge_search_content]
> query=spam, limit=10 [osgeo-knowledge_search_wiki]

The prefix identifies the MCP server, and the suffix identifies the tool.

osgeo-knowledge-base MCP tools:

  • osgeo-knowledge_search_wiki - Search AI-generated summaries and keywords
  • osgeo-knowledge_search_content - Search raw page content chunks
  • osgeo-knowledge_search_entities - Search people, projects, organizations, events
  • osgeo-knowledge_get_entity_relationships - Query entity relationships
  • osgeo-knowledge_get_page - Retrieve a full page by title
  • osgeo-knowledge_get_wiki_stats - Show database and sync statistics

osgeo-library / doclibrary MCP tools:

  • search_documents - Semantic search over document text and visual elements
  • search_visual_elements - Search figures, tables, equations, charts, and diagrams
  • list_elements - Browse document elements without semantic search
  • get_element_details - Retrieve metadata for a visual element
  • get_element_image - Retrieve a cropped element image
  • get_page_image - Retrieve a full page image
  • get_document_info - Show document metadata
  • find_document - Find a document by name or query
  • list_documents - List indexed documents
  • get_library_status - Check document library service status