testxlog

testxlog

How to use Obsidian to access the free AI writing assistant

  • Ideas
    • One is to call the Alibaba Cloud limited-time free Tongyi model through the MantouAI plugin, which has better Chinese support for domestic models
    • The other is to call the local gemma model repository through the local-gpt plugin, running downloaded gemma:2b or qwen:4b models locally
  • Methods
    • MantouAI plugin method
      • Install the MantouAI community plugin in obsidian
      • Apply for a limited-time free Dashscope API Key from Alibaba Cloud
      • Fill in the Key obtained in the MantouAI plugin box
      • With the premise of selecting part of the text in the note as the corpus
      • Press ctrl+P to open the command panel and enter MantouAI
      • Choose functions such as polishing, translation, summarization, questioning, etc. as needed
      • The result will be generated at the cursor position
        • Common functions can also be added to obsidian shortcuts, such as setting the question function to ctrl+shift+?
    • Local-gpt plugin method
      • Download and install the ollama software from the official website on the computer system
      • Open the command line and enter ollama --version to confirm the installation version is correct
      • Continue to enter ollama run gemma:2b, wait for the download and installation of the gemma:2b small model that supports 8G memory
        • Depending on the VRAM and memory size, multiple models can be downloaded and installed, such as:
        • Optional ollama run gemma:4b
        • Optional ollama run gemma:7b
        • Optional ollama run qwen:4b
        • Optional ollama run qwen:14b
        • Specific supported models can be queried from the ollama official website
      • Install the local-gpt plugin in obsidian and configure it
        • Selected AI provider: Ollama
        • Set Ollama URL to http://localhost:11434
        • Choose the Default model based on the installed models above, such as gemma:2b
        • Set a shortcut key for the local-gpt plugin, such as ctrl+alt+?, to differentiate from MantouAI's ctrl+shift+?
        • With the premise of selecting part of the text in the note as the corpus, press the ctrl+alt+? shortcut key
        • Select the desired command from the pop-up Summarize and other commands and confirm
          • Also, modify or add the names and prompt words of commands in the local-gpt plugin settings
  • Conclusion
    • Priority should be given to the MantouAI plugin method for better Chinese support in domestic models
    • When privacy is a concern, the local-gpt plugin method can be used, but it requires higher computer configuration
Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.