Get raw content from a .txt file in KB
# 🤝help
p
Hey, I want to get the raw content from a whole .txt file which is in my KB. When I use the Query Knowledge Base card and say "Give me the raw content from the whole file for {{user.solution}}" It only gives me one chunk of it and not everything. Thanks!
or is there maybe a way of letting AI Task/Generate Text directly interact with the KB?
f
Hey there, You can't let the AI Cards access the KB directly. What would you use all of the text for? You could just save the text in a variable or a text card, and then use it from there.
p
I want the Bot to summarize the whole content of a page, what would a good prompt for the Query Knowledge Base look like, so it takes a look at all of the page?
f
How many pages do you have?
Using the KB is not the correct tool for this
p
So basically I have 6 pages for 6 different industries. I currently saved the content of the website into a .txt file (cause the website was not getting indexed correctly, working on it...). I save the users Industry into a variable and based on the industry I want the KB Agent to take a look at the file that is relevant for this industry and sum up the most important information for it
what would you recommend then?
f
Probably just have a static message for each industry
Make ChatGPT write it
So you don't have to use AI Spend every time
p
Yeah, you are right. Was not thinking about this. Thanks! Other Question: My bot is German. Based on your experience, do you personally recommend more writing texts/prompting in english and using personality/translator Agent to rewrite it or prompt AI to return german texts? I encountered that the AI was a bit confused when I prompted it to return german stuff..
f
Most LLMs are trained with the most amount of data in English, which makes them better at that language. I nearly always write my prompts in English, unless I need it to respond to me in Danish or German. I would recommend you to use the translator agent, this would allow it to be multi lingual, and not fixed to a language you decide.
p
Thanks👍
f
You are very welcome
5 Views