Skip to content

Commit

Permalink
overhaul API Reference
Browse files Browse the repository at this point in the history
  • Loading branch information
slobentanzer committed Jul 29, 2024
1 parent 191073b commit 0b2b3d1
Show file tree
Hide file tree
Showing 21 changed files with 68 additions and 18 deletions.
9 changes: 9 additions & 0 deletions biochatter/api_agent/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from .abc import BaseQueryBuilder, BaseFetcher, BaseInterpreter
from .api_agent import APIAgent
from .blast import (
BlastQueryParameters,
BlastQueryBuilder,
BlastFetcher,
BlastInterpreter,
)
from .oncokb import OncoKBQueryBuilder, OncoKBFetcher, OncoKBInterpreter
20 changes: 20 additions & 0 deletions docs/api-reference.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# API Agent Reference

Here we handle the connection to external software tools via the
parameterisation of API calls by the LLM.

## The abstract base classes

::: biochatter.api_agent.abc

## The API Agent

::: biochatter.api_agent.api_agent

## The API Agent for the BLAST tool

::: biochatter.api_agent.blast

## The API Agent for the OncoKB tool

::: biochatter.api_agent.oncokb
Binary file modified docs/images/boxplot-naive-vs-biochatter.pdf
Binary file not shown.
Binary file modified docs/images/dotplot-per-task.pdf
Binary file not shown.
Binary file modified docs/images/dotplot-per-task.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/scatter-per-quantisation-name.pdf
Binary file not shown.
Binary file modified docs/images/scatter-per-quantisation-name.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/scatter-quantisation-accuracy.pdf
Binary file not shown.
Binary file modified docs/images/scatter-size-accuracy.pdf
Binary file not shown.
Binary file modified docs/images/stripplot-extraction-tasks.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/stripplot-per-model.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/stripplot-rag-tasks.pdf
Binary file not shown.
Binary file modified docs/images/stripplot-rag-tasks.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions docs/kg-reference.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Knowledge Graph Agent Reference

Here we handle generation of use case-specific database prompts and their
execution against a database using the database agent.

## Dynamic prompt generation for BioCypher knowledge graphs

::: biochatter.prompts

## Execution of prompts against the database

::: biochatter.database_agent
2 changes: 1 addition & 1 deletion docs/llm_connect-reference.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# LLM connectivity module
# LLM Connectivity Reference

Here we handle connections to various LLM services, proprietary and open source.

Expand Down
2 changes: 1 addition & 1 deletion docs/podcast-reference.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Podcast module
# Podcast Reference

Here we handle generation of podcasts from texts.

Expand Down
5 changes: 0 additions & 5 deletions docs/prompts-reference.md

This file was deleted.

12 changes: 12 additions & 0 deletions docs/reflexion-reference.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Reflexion Agent Reference

Here we handle the implementation of a LangGraph-based multi-agent system for
reflexion on a user-defined task.

## The base module

::: biochatter.langgraph_agent_base

## The KG-based reflexion agent

::: biochatter.kg_langgraph_agent
11 changes: 9 additions & 2 deletions docs/vectorstore-reference.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Vectorstore module
# Vectorstore Agent Reference

Here we handle the application of vectorstore services to retrieval-augmented
generation tasks by embedding documents.
generation tasks by embedding documents and connections/management of
vectorstore services and semantic search.

## Vectorstore Implementation

::: biochatter.vectorstore

## Vectorstore Agent

::: biochatter.vectorstore_agent
6 changes: 0 additions & 6 deletions docs/vectorstore_agent-reference.md

This file was deleted.

7 changes: 4 additions & 3 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,10 @@ nav:
- Customising BioChatter Light - Advanced: vignette-custom-bclight-advanced.md
- API Reference:
- LLM Connectivity: llm_connect-reference.md
- Vectorstore: vectorstore-reference.md
- Vectorstore Agent: vectorstore_agent-reference.md
- Prompt Engine: prompts-reference.md
- Vectorstore Agent: vectorstore-reference.md
- Knowledge Graph Agent: kg-reference.md
- API Agent: api-reference.md
- Reflexion Agent: reflexion-reference.md
- Podcast: podcast-reference.md

repo_url: https://github.com/biocypher/biochatter
Expand Down

0 comments on commit 0b2b3d1

Please sign in to comment.