Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

[Feature Request] Allow API to a specific Space #242

@LeanEntropy

Description

@LeanEntropy

🚀 Feature Request

Allow API to a specific space

🔍 Problem Statement

In a regular API call we can only access a general Perplexity query. In many scenarios, such as with a Fact Checking service, an access to a specific space is hugely needed for 2 main reasons:

  1. It allows incorporating files that include already curated data, like facts checked and verified by human fact checkers which immensely increase both accuracy and response time to the user.
  2. It allows storing the system prompt in a unified way instead of adding it to every query.

Fact checking is only one use case, there are many others who could benefit from access to a perplexity service that have both a unified system prompt and files that can be searched in in addition to a web search.

💡 Proposed Solution

Allow generating an API key for a specific Space.

📌 API Impact

  • Which API component is affected? Chat Completions
  • Is this related to a specific model? No, it can benefit any model
  • Would this require new API parameters or changes to existing ones? Yes, it would require an additional parameter assigned to the API (the Space ID)

🔄 Alternatives Considered

There are no real work arounds to this except to use a different AI service with access to files to first go over the query, extract the relevant data from the files, and then add it to the query sent to Perplexity, resulting in huge queries each.

📎 Additional Context

I use perplexity to research and validate statements as a fact checking service. I'm also collecting results and have them checked by human fact checkers to provide complete answers with images and videos. I use a space to store these files.

An API for a Space is perfect for me in this case. I want to have the API do a search in perplexity where it also searches these files first. As a bonus, I can have the system prompt be the space system prompt instead of sending it with every query.


📧 For direct inquiries, please reach out to [email protected]

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions