GithubHelp home page GithubHelp logo

Comments (4)

wey-gu avatar wey-gu commented on May 28, 2024 1

So, I want know why my korean triplet translate english triplet
Does Nebula Graph have a function to translate the given text into English and save it?

This was due to the prompts inside the llama-index being all English-based, thus sometimes it confused what language to return.

I recommend highlighting this in the triplet extraction prompt to do so.

If still you cannot do it with the example, I can provide detailed examples.

Thanks.

from nebula.

JinSeoung-Oh avatar JinSeoung-Oh commented on May 28, 2024 1

@wey-gu, Thanks! It is very helpful.
A few minutes ago, I re-run my code that has already failed dozens of times to return korean KG
And knowledgeGraphIndex return korean KG, suddenly....

Maybe your right. It is Llama_index error, maybe..

Thank for your help and have a nice day!

Thanks!!

from nebula.

wey-gu avatar wey-gu commented on May 28, 2024

Dear @JinSeoung-Oh , welcome to the NebulaGraph community!

We could override the prompt and (if openai was used, adding a system prompt to remind him to keep original languages may help, too).

In this example, I showed how to leverage models other than openai && how to override triplet extraction prompts for your reference(sorry it's in Chinese)!

Let us know your attempts and results!

Thanks!

from nebula.

wey-gu avatar wey-gu commented on May 28, 2024

Yes, I encountered this when building chinese kg with local models and the way to mitigate was to override the prompts for triplets extraction as in above example link :D.

Feel free to ping me for anything I could help.

PS. will bring more optimization for knowledge graph index/text2cypher/graph rag to llamaindex next week!

from nebula.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.