tiledesk icon indicating copy to clipboard operation
tiledesk copied to clipboard

What is KB_ENDPOINT?

Open globalexport opened this issue 11 months ago • 4 comments

Hi!

What service url is expected in KB_ENDPOINT to scrape? I do not find documentation about it.

Thank you!

globalexport avatar Mar 05 '24 12:03 globalexport

Hi, the KB (RAG chatbots) is actually only available on the SAAS version. It will come to the open source version for the end of April 🙏🏻

Andrea

sponzillo avatar Apr 05 '24 09:04 sponzillo

Hey @globalexport, the KB_ENDPOINT is used to point to the tiledesk-llm project. Just clone it to your machine and build it using Docker or pull the images at Docker Hub. Configured it today and it works like a charm!

0xM1gu3l avatar May 03 '24 23:05 0xM1gu3l

Thanks for the update! Now I understand it's a kind of API for the a pinecone vector db.

globalexport avatar May 06 '24 07:05 globalexport

It would be neat to see the tiledesk-llm one day working together with a local vector db like chroma or similar. Sometimes there are use cases which do not allow to store data on an external host.

globalexport avatar May 06 '24 07:05 globalexport

Hey @globalexport, the KB_ENDPOINT is used to point to the tiledesk-llm project. Just clone it to your machine and build it using Docker or pull the images at Docker Hub. Configured it today and it works like a charm!

Can you please share more details about your configuration? Thank you

vi1world avatar Sep 29 '24 14:09 vi1world

Hey @globalexport, the KB_ENDPOINT is used to point to the tiledesk-llm project. Just clone it to your machine and build it using Docker or pull the images at Docker Hub. Configured it today and it works like a charm!

Can you please share more details about your configuration? Thank you

Hey @vi1world, basically in your docker-compose file you need to add these lines under the service:

 tilellm:
    container_name: tilellm
    image: tiledesk/tiledesk-backend-llm:latest
    build: ./tiledesk-llm/
    ports:
      - "8000:8000"
    environment:
      - PINECONE_API_KEY={YOUR_API_KEY}
      - PINECONE_INDEX={YOUR_INDEX_NAME}
      - PINECONE_TEXT_KEY={TEXT_KEY}

You'll need a account on Pinecone to use the LLM After that just replace the variables with your keys and you're good to go.

Note: The last time that I used this was 4 months ago so I don't know if it had any changes, but give it a try!

0xM1gu3l avatar Sep 29 '24 14:09 0xM1gu3l

Another thing that I forgot is that you'll need to setup the keys KB_ENDPOINT, KB_ENDPOINT_QA and KB_ENDPOINT_TRAIN on some of the environments of the service.

On the server environment, set these variables:

- KB_ENDPOINT={KB_URL}
- KB_ENDPOINT_QA={KB_URL}
- KB_ENDPOINT_TRAIN={KB_URL}

They receive a url that probably is http://localhost:8000/api. If it's not working with localhost try to use the ip from the tiledesk-llm server. Good luck!

0xM1gu3l avatar Sep 29 '24 14:09 0xM1gu3l

Another thing that I forgot is that you'll need to setup the keys KB_ENDPOINT, KB_ENDPOINT_QA and KB_ENDPOINT_TRAIN on some of the environments of the service.

On the server environment, set these variables:

- KB_ENDPOINT={KB_URL}
- KB_ENDPOINT_QA={KB_URL}
- KB_ENDPOINT_TRAIN={KB_URL}

They receive a url that probably is http://localhost:8000/api. If it's not working with localhost try to use the ip from the tiledesk-llm server. Good luck!

Thank you very much. I set it up and the LLM service is running but when adding a new knowledge base item, it doesn't get added to pinecone. I'm thinking it's maybe related to the queue not being processed. Any ideas?

vi1world avatar Oct 04 '24 07:10 vi1world