
Security News
pnpm 10.16 Adds New Setting for Delayed Dependency Updates
pnpm's new minimumReleaseAge setting delays package updates to prevent supply chain attacks, with other tools like Taze and NCU following suit.
@polymath-ai/host
Advanced tools
This is a library that provides a host implementation for Polymath. It is designed to easily stand up a Polymath host.
There are two concrete implementations of the host:
PolymathPinecone
that relies on Pinecone as a backend.
PolymathFile
that serves local JSON files.
Both are sub-classes of PolymathHost
, which has the following API:
async ask(formData: FormData): Promise<PackedLibraryData>
async queryPacked(args: AskOptions): Promise<PackedLibraryData>
async query(args: AskOptions): Promise<LibraryData>
The ask
method is the main entry point for the host. It takes a FormData
object and returns a PackedLibraryData
object, which can be served right out
as a JSON in HTTP response.
The queryPacked
and query
methods are convenience methods that take an AskOptions
object and return a PackedLibraryData
or LibraryData
object, respectively. They are most useful for situations where you want to consume host directly in your code, without using HTTP.
FAQs
Polymath Host library
We found that @polymath-ai/host demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
pnpm's new minimumReleaseAge setting delays package updates to prevent supply chain attacks, with other tools like Taze and NCU following suit.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.