Modify https://github.com/imartinez/privateGPT to change data being sent and received

  • Status: Closed
  • Preis: $40
  • Einträge eingereicht: 3
  • Gewinner: st3vry

Kurzbeschreibung des Wettbewerbs

I need help while manipulating https://github.com/imartinez/privateGPT

I need to process some things before they go to chatgpt or after they come back from chat-gpt before they go to the user.

The first part of the job would be to edit the resonse from chatgpt. As a test if the job is done: Every " and " from chatgpt is replaced by " xxx " before being streamed to the user.

The second would be to edit the documents before they are being sent to chatgpt (after retrieval). Once the vector store retrieves some documents I need to have access to them individually. Default is the retrieval of two documents. Replace the sceond line the "I am document #1" or "I am document #2", respectively.

The third would be to edit the documents in the bulkingesting and/or upload-ingesting. Every " or " from/in the documents is replaced by " xx " before being streamed to chatGP for the embedding.

In all three cases your job would NOT BE the implementation of any particular logic. It's just that I have no idea how to even go about these jobs, and how to get access there. So your job is to only implement these three dummy-tasks

So the job would be basically:
1.) On a server of your choice (or localhost) you install the github-private_gpt package (https://github.com/imartinez/privateGPT)
2.) You code until you find the places that I need to access.
3.) You tell me

Deliverable:
- Code Adjustments to https://github.com/imartinez/privateGPT in order to achieve the three sample-tasks

Empfohlene Fähigkeiten

Feedback vom Arbeitgeber

“Awesome, again:)”

Profilbild phbock, Germany.

Top-Einträge für diesen Wettbewerb

Mehr Einträge sehen

Öffentliche Anschlagtafel

  • phbock
    Wettbewerbs-Inhaber
    • 2 Monate zuvor

    We have solved one direction:

    In ui.py:
    for delta in stream:
    if isinstance(delta, str): #Hier wird alles gestreamt, wenn man den delta überschreibt ändert sich der output beim user
    if "searchterm" in str(delta):
    full_response += " ####"
    else:
    full_response += str(delta)
    elif isinstance(delta, ChatResponse):
    full_response += delta.delta or ""
    yield full_response

    • 2 Monate zuvor
  • irefactor
    irefactor
    • 2 Monate zuvor

    Have you found any winners for this contest?

    • 2 Monate zuvor
    1. phbock
      Wettbewerbs-Inhaber
      • 2 Monate zuvor

      No, not yet. I solved one part myself, still open for a complete solution.

      • 2 Monate zuvor

Einstieg in Wettbewerbe

  • Veröffentlichen Sie Ihren Wettbewerb

    Veröffentlichen Sie Ihren Wettbewerb Schnell und einfach

  • Erhalten Sie zahlreiche Einträge

    Erhalten Sie zahlreiche Einträge aus der ganzen Welt

  • Vergeben Sie die Prämie an den besten Eintrag

    Vergeben Sie die Prämie an den besten Eintrag Laden Sie die Dateien herunter - ganz einfach!

Wettbewerb Veröffentlichen oder registrieren Sie sich heute!