Difference between revisions of "LLM-based Chat Assistant"

From OSGeo
Jump to navigation Jump to search
Line 26: Line 26:
 
* <code>[osgeo-knowledge_search_content]</code> -- TODO link to the corresponding service
 
* <code>[osgeo-knowledge_search_content]</code> -- TODO link to the corresponding service
 
* <code>[osgeo-knowledge_search_wiki]</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>
 +
> query=spam, limit=10 [osgeo-knowledge_search_content]
 +
> query=spam, limit=10 [osgeo-knowledge_search_wiki]
 +
</pre>
 +
 +
The prefix identifies the MCP server, and the suffix identifies the tool.
 +
 +
'''osgeo-knowledge MCP tools:'''
 +
* <code>osgeo-knowledge_search_wiki</code> - Search AI-generated summaries and keywords
 +
* <code>osgeo-knowledge_search_content</code> - Search raw page content chunks
 +
* <code>osgeo-knowledge_search_entities</code> - Search people, projects, organizations, events
 +
* <code>osgeo-knowledge_get_entity_relationships</code> - Query entity relationships
 +
* <code>osgeo-knowledge_get_page</code> - Retrieve a full page by title
 +
* <code>osgeo-knowledge_get_wiki_stats</code> - Show database and sync statistics
 +
 +
'''osgeo-library / doclibrary MCP tools:'''
 +
* <code>search_documents</code> - Semantic search over document text and visual elements
 +
* <code>search_visual_elements</code> - Search figures, tables, equations, charts, and diagrams
 +
* <code>list_elements</code> - Browse document elements without semantic search
 +
* <code>get_element_details</code> - Retrieve metadata for a visual element
 +
* <code>get_element_image</code> - Retrieve a cropped element image
 +
* <code>get_page_image</code> - Retrieve a full page image
 +
* <code>get_document_info</code> - Show document metadata
 +
* <code>find_document</code> - Find a document by name or query
 +
* <code>list_documents</code> - List indexed documents
 +
* <code>get_library_status</code> - Check document library service status
  
  
 
[[Category:Services]]
 
[[Category:Services]]

Revision as of 09:05, 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 using "tools", when it does, it prints the name of the tool too, among these:

  • [osgeo-knowledge_search_content] -- TODO link to the corresponding service
  • [osgeo-knowledge_search_wiki] -- 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:

> 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 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