Fabric
Fabric copied to clipboard
[Question]: How or can I use the REST API of fabric to interact with fabric?
What is your question?
Hi!
mostly I use fabric to transcribe Youtube Videos at the moment. For example I use this command:
yt "<yt video url>" | fabric -sp <mypattern> --context=<mycontext>
I wonder if it would also be possible to do these type of queries via the api. If I start up the API with `--server' I dont find an endpoint to do this. Also it seems that I am blind, but I cant find anything here about the REST-API (found a folder only).
That API would help me to package fabric into a docker container, host it on my cluster and automate my "youtube video recipe extraction to json to mealie" a lot!
Any ideas or a hint to get me to the right direction? Is it implemented? Or do I need to do this by my own.
Thanks a lot for your time!
any documentation how to test the REST API? i can't find any in the git, mostly is related to CLI calling only.
Note sure how you would do it here, but typically you can send GET and POST
request with curl. An LLM could generate the proper syntax if you are
having troubles finding what to do. That's really one of the best ways
to run a simple test.
On Sun, Feb 23, 2025, 6:42 PM ALEXIS SINGLAIRE @.***> wrote:
any documentation how to test the REST API? i can't find any in the git, mostly is related to CLI calling only.
— Reply to this email directly, view it on GitHub https://github.com/danielmiessler/fabric/issues/1269#issuecomment-2677324257, or unsubscribe https://github.com/notifications/unsubscribe-auth/APWVJYSMUSFDW654VZ5IGZ32RKBKNAVCNFSM6AAAAABVUNKCJCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNZXGMZDIMRVG4 . You are receiving this because you are subscribed to this thread.Message ID: @.***> [image: alexissinglaire]alexissinglaire left a comment (danielmiessler/fabric#1269) https://github.com/danielmiessler/fabric/issues/1269#issuecomment-2677324257
any documentation how to test the REST API? i can't find any in the git, mostly is related to CLI calling only.
— Reply to this email directly, view it on GitHub https://github.com/danielmiessler/fabric/issues/1269#issuecomment-2677324257, or unsubscribe https://github.com/notifications/unsubscribe-auth/APWVJYSMUSFDW654VZ5IGZ32RKBKNAVCNFSM6AAAAABVUNKCJCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNZXGMZDIMRVG4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>
I would mention, for this sort of thing, a better and more advanced way to
test is by using the postman gui
On Mon, Mar 3, 2025, 3:06 PM Clout Tolstoy @.***> wrote:
Note sure how you would do it here, but typically you can send GET and POST request with
curl. An LLM could generate the proper syntax if you are having troubles finding what to do. That's really one of the best ways to run a simple test.On Sun, Feb 23, 2025, 6:42 PM ALEXIS SINGLAIRE @.***> wrote:
any documentation how to test the REST API? i can't find any in the git, mostly is related to CLI calling only.
— Reply to this email directly, view it on GitHub https://github.com/danielmiessler/fabric/issues/1269#issuecomment-2677324257, or unsubscribe https://github.com/notifications/unsubscribe-auth/APWVJYSMUSFDW654VZ5IGZ32RKBKNAVCNFSM6AAAAABVUNKCJCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNZXGMZDIMRVG4 . You are receiving this because you are subscribed to this thread.Message ID: @.***> [image: alexissinglaire]alexissinglaire left a comment (danielmiessler/fabric#1269) https://github.com/danielmiessler/fabric/issues/1269#issuecomment-2677324257
any documentation how to test the REST API? i can't find any in the git, mostly is related to CLI calling only.
— Reply to this email directly, view it on GitHub https://github.com/danielmiessler/fabric/issues/1269#issuecomment-2677324257, or unsubscribe https://github.com/notifications/unsubscribe-auth/APWVJYSMUSFDW654VZ5IGZ32RKBKNAVCNFSM6AAAAABVUNKCJCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNZXGMZDIMRVG4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Did I get you right, that I need to simply ask the LLM directly via api with the system patterns in a prompt taken from fabric without using fabric?
I was thinking about it also, just doing it this way, maybe with n8n. The solution could be something like getting the transcript from youtube, passing it to a LLM with the system prompt predefined.
I would mention, for this sort of thing, a better and more advanced way to test is by using the
postmangui …
Yes it's a good way to test the REST API but unfortunately there is no proper documentation on endpoints we can use to send the request message. appreciate if you can pinpoint the location of documentation if there is.
Did I get you right, that I need to simply ask the LLM directly via api with the system patterns in a prompt taken from fabric without using fabric?
I was thinking about it also, just doing it this way, maybe with n8n. The solution could be something like getting the transcript from youtube, passing it to a LLM with the system prompt predefined.
Fabric command:
yt "
the fabric command above is using youtube transcription library to get transcription result, and from there it will use the transcription text to send to fabric using specific pattern>
if you want to test the rest API, you can install the docker version from the git provided.
this is the endpoint: http://
Use "fabric --serve" to create the Fabric API server.