Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
RAG MCP server
This MCP server provides tools for retrieval-augmented generation (RAG).
Tools currently available:
retrieve_similar_reactions(query_smiles: list[str], forward: bool, k: int) -> list[dict]get_expert_forward_synthesis_predictions(reactants: list[str]) -> list[str](only if you provide forward expert model path)get_expert_retro_synthesis_predictions(products: list[str]) -> list[str](only if you provide retro expert model path)How to use
Start the server on a different process. For example:
This will start an MCP server (with streamable-http transport by default). Note that
--forward-expert-model-pathand--retro-expert-model-pathare optional arguments.You can then connect to the server from the client side. For example:
The
--retrosynthesisflag is only needed when the context is retrosynthesis, otherwise (forward synthesis), simply remove it.