Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

API Request Parameters and Reusing Vector Store Without Regenerating Embeddings #173

Discussion options

You must be logged in to vote

Hi @abrahimzaman360,

Thank you for your questions. Here's quick guide:

  1. API Usage: To make a query like "hello assistant", use a POST request to the /query endpoint with a JSON payload. For detailed parameters and usage, visit the /docs page. Start the application with Uvicorn, and the /docs page should be available at the root URL of your server (e.g., http://your-server-address:port/docs).

  2. Vector Store Usage: To use an existing vector store without creating a new one, initialize AutoQueryEngine without passing the 'documents' parameter. This approach uses the existing store, bypassing new embedding generation:

    from autollm import AutoQueryEngine
    
    # Initialize query engine without 'do…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by fcakyon
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@fcakyon
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #172 on December 06, 2023 23:15.