khoj-ai / khoj

Your AI second brain. Self-hostable. Get answers from the web or your docs. Build custom agents, schedule automations, do deep research. Turn any online or local LLM into your personal, autonomous AI (e.g gpt, claude, gemini, llama, qwen, mistral).
https://khoj.dev
GNU Affero General Public License v3.0
14.27k stars 706 forks source link

Markdown contents #445

Closed Gangxin-Li closed 1 year ago

Gangxin-Li commented 1 year ago

Hi folks,

When I used KHOJ to write some code, I found that it doesn't have a markdown format to highlight the code. Do you have any ideas on how to implement that?

Screenshot 2023-08-16 142103 Screenshot 2023-08-16 142131
sabaimran commented 1 year ago

Fair point @Gangxin-Li. Are you using LlamaV2 here? I want to caveat here that I think that llamaV2 won't work as well with formatting programmatic output (it has to come with the triple backticks ("```"). This would work well for GPT4.

That being said, I'll push a change to the front-end code here to support formatting!

sabaimran commented 1 year ago

Noting here: to use the clipboard, you'll have to set the host in your machine to localhost or 127.0.0.1, as opposed to 0.0.0.0, for instance.

Gangxin-Li commented 1 year ago

Yes, I am using the LlamaV2. Looking forward to your new feature. Yes, I am using the 127.0.0.1, thanks for your check.